diff options
author | Anthony Wang | 2021-05-08 18:20:25 -0500 |
---|---|---|
committer | Anthony Wang | 2021-05-08 18:20:25 -0500 |
commit | 89507279cfa49e94d2d635df0b6210b5a188336b (patch) | |
tree | dc42355b93ab5c48f921ac72d01d6e9d7bda78ad | |
parent | c3a604c9526143c742dc01c62c047c904fc6885a (diff) |
Add run script
-rwxr-xr-x | build | 6 | ||||
-rw-r--r-- | env | 6 | ||||
-rwxr-xr-x | run | 5 |
3 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,6 @@ +#!/bin/bash +source ./env +cd front +npm run build +cd ../back +npm run build @@ -0,0 +1,6 @@ +export NEXT_PUBLIC_BACK_HOST='https://server.exozy.me' +export ORIGIN="*" +export PORT=4000 +export SSL_KEY=/etc/letsencrypt/live/exozy.me/privkey.pem +export SSL_CERT=/etc/letsencrypt/live/exozy.me/cert.pem +export SSL_CA=/etc/letsencrypt/live/exozy.me/chain.pem @@ -0,0 +1,5 @@ +#!/bin/bash +source ./env +./build +cd front +npm run start -- -p 5000 | sudo -E node ../back/dist/index.js |