Skip to content

Commit

Permalink
Merge pull request #382 from dimagi/deploy
Browse files Browse the repository at this point in the history
Update deploy script to be compatible with latest server
  • Loading branch information
czue authored Dec 6, 2023
2 parents 847d9e3 + dffe4e2 commit c8e003e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/malawi/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fabric==1.14.1
Fabric3==1.14.post1
4 changes: 3 additions & 1 deletion docs/systems-administration/common-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Common System Administration Tasks

## Deploying Code

To deploy code you must first connect to the VPN. Then run:
Deploying code requires installing fabric3 (`pip install -r requrements/deploy/dev-requirements.txt`).

Then, to deploy you must first connect to the VPN. Then run:

```
fab malawi deploy
Expand Down
7 changes: 3 additions & 4 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fabric.api import *


VIRTUALENV_HOME = '/home/dimagi/.virtualenvs/cstock/bin'
VIRTUALENV_HOME = '/home/cstock/.virtualenvs/cstock/bin/'
PIP = f'{VIRTUALENV_HOME}/pip'
PYTHON = f'{VIRTUALENV_HOME}/python'

Expand All @@ -10,9 +10,8 @@ def malawi():
"""
Malawi configuration
"""
env.deploy_dir = '/home/dimagi/src'
env.hosts = ['[email protected]']
env.code_dir = f'{env.deploy_dir}/logistics'
env.hosts = ['[email protected]']
env.code_dir = '/home/cstock/www/cstock/code_root'
env.branch = "main"


Expand Down

0 comments on commit c8e003e

Please sign in to comment.