This was used for the old AstroPlant server implementation and is no longer used. You can find the new AstroPlant back-end at https://github.com/AstroPlant/astroplant-backend.
AstroPlant server deployment using Ansible.
Ansible 2.5
You need to supply a secret key for the Django application and a password for the database user. Copy the files in ./conf and remove the .example suffix, and edit the newly created files.
Before executing playbooks, add your public SSH key to the target machines' authorized keys. Otherwise Ansible cannot connect.
Run the AstroPlant playbook to deploy the server:
ansible-playbook astroplant.ymlCreate/upgrade the database (make sure to backup the current database first):
source /home/astroplant/astro_venv/bin/activate && python manage.py migrateIf desired, you can import default AstroPlant data (such as measurement types, peripheral device definitions, etc.):
source /home/astroplant/astro_venv/bin/activate && python manage.py loaddata astroplantManually request a LetsEncrypt certificate for your domain:
$ /opt/certbot/certbot-auto certonly --webroot -w /var/www/astroplant -d example.comStart the Daphne server to serve request:
source /home/astroplant/astro_venv/bin/activate && daphne server.asgi:application