felixrieseberg / ember-cli-azure-deploy

:wrench: Build Ember Cli Apps on Azure Websites
MIT License
19 stars 2 forks source link

Deploy to multiple environments/servers? #17

Open leizhao4 opened 8 years ago

leizhao4 commented 8 years ago

Hi Felix,

How do I configure this addon to deploy to multiple environments/servers? I have four servers (Dev, QA, Staging, Production). How do I let them know what environment they should use to build my app?

Thanks!

graham-sportsmgmt commented 7 years ago

At this time (2.8.0) EmberJS only supports development, production, and test:

https://guides.emberjs.com/v2.8.0/configuring-ember/configuring-your-app/

Your question is still very interesting to me as I need something similar. I looked through the deploy.sh file and it seems that it should be fairly easy to add something that checks for an environment variable and conditionally adds an argument to the build process:

ember build --environment="production"

I'm not familiar enough with the underlying code to make this change, though.