package.json ... { "scripts": { "run_...
# orm-help
s
package.json ... { "scripts": { "run_me": prisma deploy --env-file src/env_files/.env.<ENV_ARGUMENT_FROM_CLI> } } i want to run ... yarn run_me local so the scripts runs - prisma deploy --env-file src/env_files/.env.local
b
I think this will do it. Haven’t tested it though. Putting
SERVER_ENV=local
before the command will set the environment variable just for that command
Copy code
"run_me":  "prisma deploy --env-file src/env_files/.env.$SERVER_ENV"
SERVER_ENV=local yarn run_me