diff --git a/deploy b/deploy index 11beb36..50f4853 100755 --- a/deploy +++ b/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" diff --git a/scripts/setup.sh b/scripts/setup.sh index d2504e2..043bc62 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -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 \ No newline at end of file +sudo pip install -r scripts/requirements.txt + +echo 'PATH=$PATH:/vagrant' >> /etc/profile \ No newline at end of file