mittwald / deployer-recipes Goto Github PK
View Code? Open in Web Editor NEWCollection of deployer recipes for interacting with the mittwald cloud platform
License: MIT License
Collection of deployer recipes for interacting with the mittwald cloud platform
License: MIT License
In many projects, it is common to have a separate staging server and production server.
Until now, I have always solved this in Deployer:
host('live')
->hostname('pxxxxx.mittwaldserver.info')
->user('pxxxxx')
->set('branch', 'main')
...
host('staging')
->hostname('pyyyyy.mittwaldserver.info')
->user('pyyyyy')
->set('branch', 'develop')
...
This way you could easily choose, if you want to deploy to the live or staging server by /vendor/bin/dep deploy live
With your Mittwald deployer-recipes, however, it is not clear to me what the syntax must look like here in order to be able to distinguish between two servers!
How can I set different "names" for the servers in the mittwald_app('<app-id>')
?
Hi!
I am currently testing your deployer-recipes.
I have installed a PHP app in the p-pey4f8 project and set a MITTWALD_API_TOKEN environment variable locally.
My deploy.php looks like this:
namespace Deployer;
require 'recipe/composer.php';
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/mittwald/deployer-recipes/recipes/deploy.php';
set('repository', 'https://github.com/Starraider/devViteTypo3.git');
mittwald_app('p-pey4f8')
->set('public_path', '/public');
If I then execute "vendor/bin/dep deploy -vv", I get the error message:
"Exception in AppRecipe.php on line 86: could not get app"
The -vv output looks like this:
task deploy:info
[mittwald] info deploying HEAD
done on mittwald
done deploy:info 100ms
task mittwald:discover
[mittwald] Exception in AppRecipe.php on line 86:
[mittwald]
[mittwald] could not get app
[mittwald]
done mittwald:discover 714ms
ERROR: Task mittwald:discover failed!
task deploy:failed
done on mittwald
done deploy:failed 135ms
Any idea what could be causing this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.