Total Pageviews

Friday 10 June 2016

网站snipt.net的源码


This is the codebase for the website, Snipt.net.

Running the Django app locally with Vagrant

Install Vagrant and either VirtualBox or VMWare Fusion.
  1. Clone the repo.
  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/.

Deploying to a VM

  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
from https://github.com/nicksergeant/snipt/