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