Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install sentry for puphpet
#!/bin/bash
sudo passwd root;
su - root;
sudo adduser sentry ; adduser sentry sudo;
su - sentry;
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get install build-essential python-dev;
apt-get install curl
curl -O http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py ; rm distribute*
sudo easy_install pip && sudo pip install virtualenv virtualenvwrapper
echo "" >> .bashrc ; echo "source /usr/local/bin/virtualenvwrapper.sh" >> .bash$
su - sentry
mkvirtualenv sentry_env && pip install sentry && sentry init
sudo apt-get install postgresql postgresql-contrib libpq-dev ; sudo -u postgres$
CREATE EXTENSION "adminpack";
\q
sudo passwd postgres
sudo su - postgres
psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'changeme';"
createdb sentry
createuser sentryuser --pwprompt
psql -d template1 -U postgres
GRANT ALL PRIVILEGES ON DATABASE sentry to sentryuser;
\q
exit
wget -P.sentry/ https://gist.githubusercontent.com/pablodevopensource/ba97a24bf3b6a2614a16/raw/c2de81240cd1c16e010afde3d1aa9b8a52cf9781/sentry.conf.py
workon sentry_env ; pip install psycopg2 ; sentry upgrade ; sentry start
sudo apt-get install nginx ; sudo rm /etc/nginx/sites-enabled/default
sudo touch /etc/nginx/sites-available/sentry ; cd /etc/nginx/sites-enabled ; sudo ln -s ../sites-available/sentry
wget -P/etc/nginx/sites-available/ https://gist.githubusercontent.com/pablodevopensource/f652bd282aaca647517c/raw/0a6389ed92ea34abcba6c67b5d31e2f03b1ae728/sentry
sudo service nginx restart ; sentry start &
sudo apt-get install supervisor ; wget -P/etc/supervisor/conf.d/ https://gist.githubusercontent.com/pablodevopensource/ab3d919b364759995667/raw/809bf9b031a0fa20ed0b914f99ae63dd3dc07aa6/sentry.conf
sudo killall supervisord ; sudo supervisord
workon sentry_env ; pip install sentry --upgrade ; sentry upgrade ; sudo supervisorctl restart sentry-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.