From 89507279cfa49e94d2d635df0b6210b5a188336b Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 8 May 2021 18:20:25 -0500 Subject: Add run script --- build | 6 ++++++ env | 6 ++++++ run | 5 +++++ 3 files changed, 17 insertions(+) create mode 100755 build create mode 100644 env create mode 100755 run diff --git a/build b/build new file mode 100755 index 0000000..a9fe3ba --- /dev/null +++ b/build @@ -0,0 +1,6 @@ +#!/bin/bash +source ./env +cd front +npm run build +cd ../back +npm run build diff --git a/env b/env new file mode 100644 index 0000000..ce62101 --- /dev/null +++ b/env @@ -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 diff --git a/run b/run new file mode 100755 index 0000000..ab82638 --- /dev/null +++ b/run @@ -0,0 +1,5 @@ +#!/bin/bash +source ./env +./build +cd front +npm run start -- -p 5000 | sudo -E node ../back/dist/index.js -- cgit v1.2.3-70-g09d2