realms-wiki/provision.sh

45 lines
931 B
Bash

#!/bin/bash
APP_DIR=/vagrant
echo "Provisioning..."
add-apt-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y python build-essential git libpcre3-dev python-software-properties \
python-pip python-virtualenv python-dev pkg-config curl libxml2-dev libxslt1-dev zlib1g-dev \
libffi-dev nodejs screen
# Default cache is memoization
# Redis
# add-apt-repository -y chris-lea/redis-server
# add-apt-repository -y chris-lea/python-redis
# apt-get update
# apt-get install -y redis-server
# Default DB is sqlite
# Mysql
# apt-get install -y mysql-server mysql-client
# MariaDB
# apt-get install -y mariadb-server mariadb-client
# Postgres
# apt-get install -y postgresql postgresql-contrib
cd ${APP_DIR}
# Install frontend assets
npm install -g bower
bower install
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Dev server http://127.0.0.1:5000
# python realms.py runserver