Add deploy script to PATH
This commit is contained in:
parent
1f443c0ba9
commit
ab24ee327f
2 changed files with 7 additions and 5 deletions
2
deploy
2
deploy
|
@ -4,5 +4,5 @@ echo "Stopping the server..."
|
|||
pkill gunicorn
|
||||
|
||||
echo "Starting the server..."
|
||||
cd server
|
||||
cd /home/vagrant/server
|
||||
gunicorn --bind 0.0.0.0:8000 -w 1 "app:app"
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Updating system..."
|
||||
apt-get -y update
|
||||
apt-get -y upgrade
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y upgrade
|
||||
|
||||
echo "Installing dependencies..."
|
||||
apt-get -y install python-pip
|
||||
sudo apt-get -y install python-pip
|
||||
|
||||
echo "Installing pip dependencies..."
|
||||
pip install -r scripts/requirements.txt
|
||||
sudo pip install -r scripts/requirements.txt
|
||||
|
||||
echo 'PATH=$PATH:/vagrant' >> /etc/profile
|
Loading…
Reference in a new issue