-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax for multiple deployment targets #25
Comments
In this case, I'd recommend creating two separate apps for each environment (staging+prod), which may or may not run within the same project. You probably won't be able to use the host('mittwald-prod')
->set('mittwald_app_id', '<app-id-prod>')
->set('branch', 'main');
host('mittwald-staging')
->set('mittwald_app_id', '<app-id-staging>')
->set('branch', 'develop'); Let me know if that helps! |
Quick update: With #33, you now have the option to overwrite the hostname when using the mittwald_app('<app-id-prod>', hostname: 'mittwald-prod')
->set('branch', 'main');
mittwald_app('<app-id-staging>', hostname: 'mittwald-staging')
->set('branch', 'develop'); I've also added a short section on deploying to multiple environments in the respective documentation: mittwald/developer-portal#62. I hope that helps; I'll close this issue for now -- feel free to reopen. 🙂 |
In many projects, it is common to have a separate staging server and production server.
Until now, I have always solved this in Deployer:
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>')
?The text was updated successfully, but these errors were encountered: