Initial commit
This commit is contained in:
11
web/docker/entrypoint.sh
Normal file
11
web/docker/entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
||||
export NEXT_PUBLIC_EDITION=${EDITION}
|
||||
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_URL}/console/api
|
||||
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_URL}/api
|
||||
|
||||
/usr/local/bin/pm2 -v
|
||||
/usr/local/bin/pm2-runtime start /app/web/pm2.json
|
12
web/docker/pm2.json
Normal file
12
web/docker/pm2.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"name": "WebApp",
|
||||
"exec_mode": "cluster",
|
||||
"instances": 1,
|
||||
"script": "./node_modules/next/dist/bin/next",
|
||||
"cwd": "/app/web",
|
||||
"args": "start"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user