KyleG
04/25/2018, 11:46 PMprisma deploy is there a way I can have my PRISMA_MANAGEMENT_API_SECRET secret NOT defined in ~/.prisma/config.yml? I just added a nice .env file with the var defined for when I use docker-compose for the Prisma server. The managementApiSecret option gets populated automatically thanks to the .env file when it reads docker-compose.yml. I was initially hoping prisma deploy would read and find the var defined in the .env there but nope, I gotta duplicate my secret between different files (.env and ~/.prisma/config.yml) - I'd like one source of truth if possible but not a huge deal if not...nilan
04/26/2018, 8:20 AM.env file look like?KyleG
04/27/2018, 10:24 PM--env-file for prisma deploy. So I defined a new .env that looks like this:KyleG
04/27/2018, 10:24 PMPRISMA_STAGE="dev"
PRISMA_ENDPOINT="<http://ec2-18-204-34-223.compute-1.amazonaws.com/:4466/server-prisma/dev>"
PRISMA_CLUSTER="aws01"
PRISMA_SECRET="my_prisma_secret"
APP_SECRET="my_app_secret"
PRISMA_MANAGEMENT_API_SECRET="my_api_secret" (wrote some fake secrets)KyleG
04/27/2018, 10:25 PMKyleG
04/27/2018, 10:27 PM~/.prisma/config.yml I have the following:
clusters:
local:
host: '<http://localhost:4466>'
clusterSecret: "my_api_secret" # PRISMA_MANAGEMENT_API_SECRET
aws01:
host: '<http://ec2-18-204-34-223.compute-1.amazonaws.com/:4466>'
clusterSecret: "my_api_secret" # PRISMA_MANAGEMENT_API_SECRET
Deploy works fine locally but not at all for my other cluster (which I call aws01). When I run prisma deploy -e ./.env.aws01 I get a funky error...KyleG
04/27/2018, 10:28 PMhttps://puu.sh/AbF3Q/bf2c87b38c.png▾
KyleG
04/27/2018, 10:39 PM~/.prisma/config.yml, my ./database/prisma.yml, and .env actually comes together when prisma deploy is fired. 😩nilan
04/28/2018, 6:44 AMnilan
04/28/2018, 6:46 AMKyleG
05/02/2018, 3:04 AM~/.prisma/config.yml, something I had fixed without much thought when I resumed work today.
host: '<http://ec2-xx-xxx-xx-xxx.compute-1.amazonaws.com:4466>' works,
host: '<http://ec2-xx-xxx-xx-xxx.compute-1.amazonaws.com/:4466>' doesn't work even though I think that's acceptable formatting for a browser's address bar.
Is that a dumb mistake that's my own problem? Or do you think prisma should be robust in handling poor host formatting?
Looks like there exists some talk about prisma deploy and these various config files going on right now so I'm not going to add another thread.nilan
05/02/2018, 7:42 AM/: is valid?nilan
05/02/2018, 7:11 PM<https://example.com/:123> on https://www.freeformatter.com/url-parser-query-string-splitter.html, :123 is detected as a "resource".
for <https://example.com:123>, :123 is detected as the port