snipt/README.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

# Snipt
This is the codebase for the website, [Snipt.net](https://snipt.net/).
2014-10-30 19:45:33 -07:00
# Running the Django app locally with Vagrant
2014-10-30 08:56:28 -07:00
Install [Vagrant](https://www.vagrantup.com/) and either [VirtualBox](https://www.virtualbox.org/) or
[VMWare Fusion](http://www.vmware.com/products/fusion).
1. Clone the repo.
2014-10-30 08:56:28 -07:00
2. `cp settings_local.py-template settings_local.py`
3. Edit local settings (choose a database password - you'll be prompted for it).
4. `make vagrant`
5. Visit [http://local.snipt.net:8080/](http://local.snipt.net:8080/).
2014-10-20 08:50:04 -07:00
2014-10-30 09:31:48 -07:00
# Deploying to a VM
2014-10-30 19:45:33 -07:00
2014-10-30 09:31:48 -07:00
1. Clone the repo.
2. `cp settings_local.py-template settings_local_server.py`
3. Edit local server settings (choose a database password - you'll be prompted for it).
4. Manually change the VM IP address in the Makefile.
5. `make server`
2014-10-30 19:45:33 -07:00
6. SSH into the server, `sudo su - deploy`, `ssh-keygen`, and add the public key to your repo as a deploy key.
7. `make server-init`
2014-10-30 09:31:48 -07:00
2014-10-20 08:50:04 -07:00
# Deploying to Heroku
1. Clone the repo.
2. `heroku create`
2014-10-20 20:38:30 -07:00
3. `heroku addons:add heroku-postgresql:hobby-dev`
4. `heroku addons:add searchbox`
2014-10-20 17:21:05 -07:00
8. `heroku config:add DEBUG=False`
2014-10-20 19:16:13 -07:00
9. `heroku config:add INTERCOM_SECRET_KEY=`
9. `heroku config:add POSTMARK_API_KEY=`
11. `heroku config:add RAVEN_CONFIG_DSN=`
12. `heroku config:add SECRET_KEY=`
13. `heroku config:add STRIPE_SECRET_KEY=`
14. `heroku config:add USE_SSL=False`
15. `git push heroku`
2014-10-20 20:36:45 -07:00
16. `heroku run python manage.py syncdb`
17. `heroku run python manage.py migrate`
2012-09-18 16:36:25 -07:00
Any problems / questions / bugs, [create an issue](https://github.com/nicksergeant/snipt/issues). Thanks! :)