Setting up Your Development Environment
Just follow the official installation from source instructions.
Macintosh OS X
To get started, fork the repo at https://github.com/getsentry/sentry and clone it:
git clone https://github.com/<your github username>/sentry.git cd sentry
Install Homebrew, if you haven’t already, then run
brew install python@2.
It is highly recommended to develop inside a Python virtual environment, so install
pip install virtualenv virtualenvwrapper
Then append the following to your shell profile (e.g.
~/.bashrc) and reload it:
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc exec bash
Setup and activate a Python 2.7 virtual environment in the project root:
nvm and use it to install the node version specified in the
brew install nvm echo "source /usr/local/opt/nvm/nvm.sh" >> ~/.bashrc exec bash nvm install
Finally, you’ll need to create the
psql template1 $(whoami) -c 'CREATE USER postgres SUPERUSER;'
Running the Development Server
Before you are able to run the development server, you first must create a proper database for it to use. Running the following will create the proper database and fill it with example data:
createdb -U postgres -E utf-8 sentry sentry init --dev sentry upgrade
Once you’ve successfully stood up your datastore, you can now run the development server:
sentry devserver --workers
When webpack finishes processing, you can find a login prompt for the user account you previously created at http://localhost:8000. From there, you are free to browse the website as an administrator.
Staging Your Changes
You’ve made your changes to the codebase, now it’s time to present them to the Sentry developers. It is recommended to first run the test suite locally in order to find any linting, syntax, or integration before you post a Pull Request.
Running the Test Suite Locally