-
Notifications
You must be signed in to change notification settings - Fork 23
Web Front End
Libby Hemphill edited this page Jan 30, 2017
·
5 revisions
STACK has a front end that hasn't been tested much. It requires some additional installation steps. This page should be updated and clarified as it is copied from an old Evernote page. This page also installs STACK, but more detail about installing STACK can be found on other pages. We could use some help testing this install and making sure the documentation is useful and accurate.
sudo apt-get update
Step 2 - Install Mongo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
Step 3 - Install Git
sudo apt-get install git
git config —global user.name “Your Name"
git config —global user.email “[email protected]"
Step 4 - Install Rabbit MQ
echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list
sudo curl http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install rabbitmq-server
Step 5 - Setup Apache2
sudo apt-get install apache2
Replace $YOUR_SERVER_NAME with your server address and $ADMIN_EMAIL with your admin's contact
<VirtualHost *:80>
ServerName $YOUR_SERVER_NAME
ServerAdmin $ADMIN_EMAIL
WSGIScriptAlias / /var/www/stack/run.wsgi
<Directory /var/www/stack/app/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/stack/app/static
<Directory /var/www/stack/app/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite path/to/stack.conf
Install mod_wsgi
sudo apt-get install libapache2-mod-wsgi python-dev
sudo a2enmod wsgi
Step 6 - Install pip
sudo apt-get install python-pip
git clone https://github.com/bitslabsyr/stack.git
pip install -r
sudo chmod a+rw /var/www/
sudo service apache2 restart