1
0
mirror of synced 2024-11-14 09:57:36 +01:00
bemaniutils/examples/install
2019-12-08 21:43:49 +00:00

18 lines
520 B
Bash
Executable File

#! /bin/bash
# A utility that will install the latest version of the code in the repo
# to your virtualenv, run any upgrade scripts to update your production
# MySQL instance and then preload the JSX cache. Effectively, a one-liner
# to deploying a new version.
set -e
pushd /path/to/git/checkout
source /path/to/your/virtualenv/bin/activate
pip install --upgrade pip
pip install . -U --force-reinstall
./dbutils --config /path/to/your/root/server.yaml upgrade
deactivate
popd
sudo service uwsgi restart && ./preload