You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker compose -f docker-compose.prod.yml --env-file client.prod.env up --build
I am trying to run this command for production mode, but it caused error.
In server, docker file is CMD ["yarn", "start:prod"]
package.json is
"scripts": {
"build": "tsc-alias --project tsconfig.json",
"dev": "ts-node-dev --respawn -r tsconfig-paths/register index.ts",
"start": "yarn build && node build/index.js",
"start:prod": "node build/index.js",
"ci": "yarn install --frozen-lockfile"
},
The text was updated successfully, but these errors were encountered:
Hi @flaviuse i guess you need to update the build script in package.json according to tsc-alias documentation: "build": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json", should do it!
docker compose -f docker-compose.prod.yml --env-file client.prod.env up --build
I am trying to run this command for production mode, but it caused error.
In server, docker file is CMD ["yarn", "start:prod"]
package.json is
"scripts": {
"build": "tsc-alias --project tsconfig.json",
"dev": "ts-node-dev --respawn -r tsconfig-paths/register index.ts",
"start": "yarn build && node build/index.js",
"start:prod": "node build/index.js",
"ci": "yarn install --frozen-lockfile"
},
The text was updated successfully, but these errors were encountered: