Skip to content

Commit

Permalink
🔨 Use stash/stash pop to cope with local settings w/o forcing a commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tibonihoo committed Apr 30, 2024
1 parent 3a57543 commit b34f153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def deploy_on_remote(c, target_config):
run_in_shell = run_cmd
run_in_dir = lambda cmd: run_in_shell("cd '{0}' && {1}".format(site_dir, cmd))
venv_dir = target_config["virtual_env_dir"]
run_in_dir("git stash")
run_in_dir("git pull --rebase origin master")
run_in_dir("git stash pop")
requirements = target_config["requirements"]
run_in_dir("source {0}/bin/activate && pip3 install -r {1}".format(venv_dir, requirements))
# NOTE: for existing apps running with Django1.4, the first upgrade to
Expand Down

0 comments on commit b34f153

Please sign in to comment.