For deploying LUNCH to the test server, simpy run:
ansible-playbook -i dvalin.tf.fi, --user $YOUR_USERNAME --private-key /some/path/to/$PRIVATEKEY
This requires that you have ansible
installed and your public key deployed to the server. The playbook will then:
- Install dependencies
- Build the site locally with
npm run build
and rsyncdist/
to the server - Create a
systemd
unit for running the backend and starting it - Configure
nginx