New design of Portalnesia. Clean. Simple
If not change dependencies, skip this steps
-
Copy files to server
- package.json
- package-lock.json
- pm2.config.json
- env files (.env.local, .env.development, .env.production)
-
Install production depedencies
RUN
RUN NODE_ENV=production npm ci #or npm ci --omit=dev
-
Build from local computer
In local computer, RUN:
npm run build && npm run pack
-
Copy build files to server
Copy
/tmp/portalnesia.zip
to server -
Unzip the build files that have been sent to the server
RUN
unzip portalnesia.zip
-
Running server
RUN
pm2 start pm2.config.json