- Create provision/users/files/authorized_keys containing the ssh keys needed to access the server.
- Create an Ansible inventory file containing a remote machine in the group "remote".
- Export a variable NEW_RELIC_LICENCE_KEY set to the new relic licene key.
- Run this ansible onto the machine.
-
Clone demokratikollen into /home/deploy/demokratikollen_old
-
Copy over a backup of an old /home/deploy/data dir with database_dumps containing _latest versions.
-
Clone demokratikollen to your own pc.
-
Modify the deploy ansible to use the deployment_first.py instead of deployment.py
-
Set the SECRET envs for cookie and CSRF.
-
Set DEPLOY env to all
-
Run the ansible, keep fingers crossed.
-
Monitor on the server or tunnel port 8080 to get to the deploy log.