yarn install
Edit config/config.dev.ts
file to change the configuration of the app.
yarn dev
-
Copy
config/config.template.ts
toconfig/config.dev.ts
and change it accordingly -
Place the ssl keys on the ssl_keys/ directory
This directory must contain the following files
-
<server_name>-chain-only.pem
-
<server_name>-server-only.pem
-
<server_name>-server-with-chain.pem
- Change the server_name variable on the
entrypoint.sh
file
This step must run on a VM identical to the production system (same distribution, version and architecture)
yarn build:prod
Test the application
yarn start
npm i -g @gsiou/paketo
yarn snapshot
rsync --rsh='ssh -p 65432' <snapshot_name>.tar.gz root@ip:/tmp
cd /tmp
rm -rf wallet-backend
mkdir wallet-backend
tar -xf <snapshot_name>.tar.gz -C wallet-backend
cd wallet-backend
chmod +x entrypoint.sh
./entrypoint.sh
Add Listen 9002
below the Listen 443
line on /etc/apache2/ports.conf
and restart apache