1.4 KiB
1.4 KiB
Snipt
This is the codebase for the website, Snipt.net.
Running the Django app locally with Vagrant
Install Vagrant and either VirtualBox or VMWare Fusion.
- Clone the repo.
cp settings_local.py-template settings_local.py
- Edit local settings (choose a database password - you'll be prompted for it).
make vagrant
- Visit http://local.snipt.net:8080/.
Deploying to a VM
- Clone the repo.
cp settings_local.py-template settings_local_server.py
- Edit local server settings (choose a database password - you'll be prompted for it).
- Manually change the VM IP address in the Makefile.
make server
Deploying to Heroku
- 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 controlheroku 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.
Any problems / questions / bugs, create an issue. Thanks! :)