Long-term memory for coders. Share and store code snippets.
Deploy this app to RackNerd for $0.99/mo only!
cd snipt
python3 -m venv ~/.virtualenvs/snipt
source ~/.virtualenvs/snipt/bin/activate
pip install -r requirements.txt
brew install postgresql
brew services start postgresql
createuser snipt
createdb snipt --owner=snipt
cp settings_local.py-template settings_local.py
// modify if necessarypython manage.py migrate
make run
dokku apps:create snipt
dokku postgres:create snipt
dokku postgres:link snipt snipt
scp snipt.dump nsergeant@server.nicksergeant.com:/home/nsergeant
dokku postgres:connect snipt < snipt.dump
dokku domains:add snipt snipt.net
dokku storage:mount snipt /var/lib/dokku/data/storage/snipt-whoosh:/app/snipt-whoosh
dokku config:set DOKKU_LETSENCRYPT_EMAIL=support@snipt.net SECRET_KEY=<some-secret-key> USE_SSL=true WHOOSH_PATH=/app/snipt-whoosh/whoosh_index
git remote add dokku dokku@server.nicksergeant.com:snipt
git push dokku
You can click the button below to automatically deploy Snipt to Heroku.
heroku create
heroku addons:add heroku-postgresql:hobby-dev
heroku addons:add searchbox
heroku config:add SECRET_KEY=<some-secret-key>
git push heroku
heroku run python manage.py migrate
heroku run python manage.py createsuperuser
git clone https://github.com/nicksergeant/snipt
cd snipt
git checkout heroku
heroku git:remote -a <your-instance-name>
git push heroku heroku:master
If you want email support (for password resets, server errors, etc):
heroku addons:create postmark:10k
heroku run addons:open postmark
-> use an email you control and confirm itheroku config:add POSTMARK_EMAIL=<email_from_above>
If you want to disable user-facing signup:
heroku config:set DISABLE_SIGNUP=true
If you want to enable Django's DEBUG mode:
heroku config:add DEBUG=true
If you want to enable SSL on a custom domain after you've configured your Heroku SSL cert:
heroku config:add USE_SSL=true
Please login to review this project.
No reviews for this project yet.
Simple pastebin service with convenient api and CLI.
Beautiful, simple and easy to deploy Pastebin with optional…
Cross-platform C# pastebin with client-side AES-256 encrypt…
Comments (0)
Please login to join the discussion on this project.