forked from teresaShanklin/RAPID
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (28 loc) · 935 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Exit the script if one of the commands fails
set -e
# Directory where entire Django application is located
APPLICATION_DIR="/vagrant"
# Default external configuration files
CELERY_CONFIGS_DIR="$APPLICATION_DIR/external_configs/celery"
APACHE_CONFIGS_DIR="$APPLICATION_DIR/external_configs/apache2"
# Update package list and upgrade all packages
apt-get update
apt-get -y upgrade
# Install dependency packages for application
apt-get install -y whois
apt-get install -y rabbitmq-server
apt-get install -y python3-all-dev
apt-get install -y python3-pip
apt-get install -y libpq-dev
echo "Prerequisites installed"
cd $APPLICATION_DIR
pip3 install -r requirements.txt
echo "Python package requirements installed"
# Install Apache
apt-get install -y apache2
apt-get install -y libapache2-mod-wsgi-py3
echo "Apache installed"
# Install Postgres
apt-get install -y postgresql postgresql-contrib
echo "Postgres installed"