Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed May 27, 2018
1 parent 4c37b66 commit 51fc4ec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions setup.sh
@@ -1,8 +1,18 @@
#!/bin/sh
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install build-essential libffi-dev python-dev postgresql postgresql-server-dev-all redis-server nodejs
echo "install dependencies ..."
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y build-essential libffi-dev python-dev postgresql postgresql-server-dev-all nginx redis-server python-pip nodejs
sudo pip install setuptools pipenv uwsgi
pipenv install

mkdir log
mkdir tmp
mkdir db/migrate/versions

echo "create default config file ..."
cp config/github.py.example config/github.py
cp config/database.py.postgresql.example config/database.py

echo "create database ..."
sudo -u postgres createuser gitdigger -P
sudo -u postgres createdb -O gitdigger gitdigger_development

0 comments on commit 51fc4ec

Please sign in to comment.