You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying for hours to figure out why I can't get a staging setup to deploy to a different location when I pass it as a parameter to deploy js
Is this not supported? I'm using the S3 deployment setup and have two different buckets for production and staging. I can't figure out how to get this to work. Please help
Hi! This is supported for sure. Running deployjs deploy -e staging would use the staging environment. In config/deploy.js you would then put something like
Activity
duizendnegen commentedon Oct 11, 2017
Hi! This is supported for sure. Running
deployjs deploy -e stagingwould use the staging environment. Inconfig/deploy.jsyou would then put something likeIf your staging endpoint also points to a different backend server, be sure to update the API URL depending on your framework build script.
Let me know if this works for you.
jrdn91 commentedon Oct 11, 2017
So when I run that with
--verboseI see a link at the beginning...- Missing config:environment, using default:prod``And then when it runs the build...
- building app todistusing buildEnvprod...And it's uploading to the correct bucket, but using the wrong
environmentfileI've set up in my
.angular-cli.jsonI list itWhich references a different
APIUrlbut when I open the different buckets in the web, both are using myproductionAPIUrlinstead of being differentduizendnegen commentedon Oct 12, 2017
Add the following lines inside the
ifblock of yourstagingenvironment:Welcoming a PR for better docs on https://github.com/deployjs/deployjs-angular-build specifically for this.