Skip to content

Commit

Permalink
Update start script in package.json to copy files to both dist/public…
Browse files Browse the repository at this point in the history
… and public directories
  • Loading branch information
SDE-ADNAN committed Jan 5, 2024
1 parent ba6a1fe commit cd6b429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "./dist/app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run prepare-deploy && cd ../admin-client && sudo rm -rf ../server/dist/public && sudo mkdir -p ../server/dist/public && cd ./build && sudo cp -r * ../../server/dist/public && cd ../../server && node ./dist/app.js",
"start": "cd ../admin-client && sudo rm -rf ../server/dist/public && sudo mkdir -p ../server/dist/public && cd ./build && sudo cp -r * ../../server/dist/public && sudo rm -rf ../server/public && sudo mkdir -p ../server/public && sudo cp -r * ../../server/public && cd ../../server && node ./dist/app.js",
"dev": "NODE_ENV=development nodemon ./dist/app.js",
"prepare-deploy":"cd ../admin-client && npm run build && cd ../server && tsc"
},
Expand Down

0 comments on commit cd6b429

Please sign in to comment.