From 7cd4b5dfc6610ce8220d76605551cec2a9a19be2 Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Tue, 3 Nov 2026 03:52:52 +0100 Subject: [PATCH] chore: remove fabric deploy script --- fabfile.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 fabfile.py diff --git a/fabfile.py b/fabfile.py deleted file mode 100644 index aae06f9..0000000 --- a/fabfile.py +++ /dev/null @@ -1,22 +0,0 @@ -import os - -from fabric import Connection -from invoke import task - - -@task() -def deploy(c): - """Make sure proxy_user is set to your neuf username.""" - project_path = '/var/www/neuf.no/django-postfix-dovecot-api' - proxy_user = os.getenv('DEPLOY_USER', os.getenv('USER')) - - c = Connection(host='gitdeploy@lynx.neuf.no', gateway=Connection('login.neuf.no', user=proxy_user)) - - with c.cd(project_path), c.prefix('source {}/venv/bin/activate'.format(project_path)): - c.run('git pull') # Get source - c.run('pip install -r requirements.txt') # install deps in virtualenv - c.run('umask 022; python manage.py collectstatic --noinput') # Collect static - c.run('python manage.py migrate') # Run DB migrations - - # Reload mxapi.neuf.no - c.sudo('/usr/bin/supervisorctl pid mxapi.neuf.no | xargs kill -HUP', shell=False)