snipt/README.md

41 lines
1.4 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-20 08:50:04 -07:00
# Deploying to Heroku
2016-11-01 12:15:56 -07:00
- Clone the repo.
- `heroku create`
- `heroku addons:add heroku-postgresql:hobby-dev`
- `heroku addons:add searchbox`
- `heroku addons:create postmark:10k`
- `heroku addons:open postmark` -> use an email you control
- `heroku config:add POSTMARK_EMAIL=<email_from_above>`
- `heroku config:add DEBUG=False`
- `heroku config:add SECRET_KEY=`
- `git push heroku`
- `heroku run python manage.py migrate`
- `heroku run python manage.py createsuperuser`
- Visit yourapp.herokuapp.com and login with the user you just created.
2012-09-18 16:36:25 -07:00
Any problems / questions / bugs, [create an issue](https://github.com/nicksergeant/snipt/issues). Thanks! :)