File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Railway startup script - v4
2+ # Railway startup script - v5
33
44echo " >>>>> RAILWAY STARTUP SCRIPT RUNNING <<<<<"
55echo " >>>>> PORT=$PORT <<<<<"
@@ -11,17 +11,22 @@ export DATABASE_URL="$DATABASE_CONNECTION_URI"
1111
1212echo " >>>>> SERVER_PORT=$SERVER_PORT <<<<<"
1313
14- # Create .env file
14+ # Create .env file with all required variables
1515cat > .env << EOF
1616DATABASE_PROVIDER=${DATABASE_PROVIDER:- postgresql}
1717DATABASE_CONNECTION_URI=$DATABASE_CONNECTION_URI
1818SERVER_TYPE=http
1919SERVER_PORT=$SERVER_PORT
20- AUTHENTICATION_API_KEY=${AUTHENTICATION_API_KEY:- test }
20+ AUTHENTICATION_API_KEY=${AUTHENTICATION_API_KEY:- evo_api_key_secure_2026 }
2121CACHE_REDIS_ENABLED=false
2222CACHE_LOCAL_ENABLED=true
2323CORS_ORIGIN=*
24+ CORS_METHODS=POST,GET,PUT,DELETE
25+ CORS_CREDENTIALS=true
2426LANGUAGE=en
27+ LOG_LEVEL=ERROR,WARN,INFO,LOG
28+ LOG_COLOR=false
29+ TELEMETRY_ENABLED=false
2530EOF
2631
2732echo " >>>>> .env created <<<<<"
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://railway.com/railway.schema.json" ,
3+ "build" : {
4+ "builder" : " DOCKERFILE" ,
5+ "dockerfilePath" : " Dockerfile"
6+ },
7+ "deploy" : {
8+ "runtime" : " V2" ,
9+ "numReplicas" : 1 ,
10+ "sleepApplication" : false ,
11+ "restartPolicyType" : " ON_FAILURE" ,
12+ "restartPolicyMaxRetries" : 10 ,
13+ "healthcheckPath" : " /" ,
14+ "healthcheckTimeout" : 300 ,
15+ "startCommand" : null
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments