sunrising
07/12/2018, 4:17 PMdev
from prod
environment variables for the graphcool.yml and the authentication scripts of a graphcool-framework project?
I think this answer is outdated: https://www.prisma.io/forum/t/1-0-different-environments-different-graphcool-yml-files/2105/2sunrising
07/12/2018, 5:09 PM.graphcoolrc
panzupa
07/12/2018, 5:12 PMpanzupa
07/12/2018, 5:12 PMpanzupa
07/12/2018, 5:13 PMgraphcool.yml
- I work alone on a project so I don't care about sharing secretssunrising
07/12/2018, 5:31 PM.graphcoolrc
with this code:
targets:
default: prod
prod: shared-eu-west-1/xxxxx......
dev: shared-eu-west-1/xxxxxx.....
panzupa
07/12/2018, 5:31 PMsunrising
07/12/2018, 5:32 PM.db_prod.env
AND .db_dev.env
sunrising
07/12/2018, 5:32 PMsunrising
07/12/2018, 5:32 PMsunrising
07/12/2018, 5:32 PM"deploy-prod": "node -r dotenv/config $(which graphcool) deploy --target prod dotenv_config_path=.db_prod.env",
panzupa
07/12/2018, 5:32 PMsunrising
07/12/2018, 5:33 PMsunrising
07/12/2018, 5:33 PMsunrising
07/12/2018, 5:34 PMsunrising
07/12/2018, 5:35 PMpanzupa
07/12/2018, 5:35 PMgraphcool.yml
- one dependency lesssunrising
07/12/2018, 5:35 PMpanzupa
07/12/2018, 5:35 PMpanzupa
07/12/2018, 5:35 PMgc --help
sunrising
07/12/2018, 5:36 PMpanzupa
07/12/2018, 5:38 PMgc root-token --help
panzupa
07/12/2018, 5:39 PM