Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |