Add token permissions for coverage-comment, fully qualify & use development environment in run.sh DB URL

This commit is contained in:
2024-11-09 15:31:38 -06:00
parent f1be6676d1
commit 53a0ac0624
2 changed files with 7 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ if $DATABASE_DEFINED; then
else
if $RAILWAY_AVAILABLE; then
if $PROJECT_LINKED; then
DATABASE_URL="$(railway variables -s Postgres --json | jq .DATABASE_PUBLIC_URL -cMr)" $COMMAND $@
DATABASE_URL="$(railway variables --service Postgres --environment development --json | jq .DATABASE_PUBLIC_URL -cMr)" $COMMAND $@
else
echo "error: Railway project not linked."
echo "Run 'railway link' to link the project."