Stormheg / wagtail.io

Source code of https://wagtail.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wagtail.io

This is the source code to Wagtail's website

Installation

You firstly need to install git, Vagrant and Virtualbox. Once they are installed, run the following commands to get up and running:

git clone https://github.com/wagtail/wagtail.io.git
cd wagtail.io
vagrant up

This will download the base image and provision a local VM that will run the site locally.

Usage

Common Vagrant commands:

  • vagrant up starts the VM
  • vagrant halt stops the VM
  • vagrant ssh opens a shell in the VM
  • vagrant destroy deletes the VM

Shortcut commands:

Within the VM shell, you can run ./manage.py to run any Django management command. But we have added a couple of shortcuts to save on typing:

  • dj <command> [args] - Runs a management command (eg, dj shell)
  • djrun - Starts the webserver on port 8000

Deployment

The site is hosted on heroku, and is deployed by pushing to the heroku remote.

Creating and pushing to the heroku branch is handled automatically by fabric command.

To staging

fab deploy_staging

To production

fab deploy_production

About

Source code of https://wagtail.io


Languages

Language:Python 58.3%Language:HTML 23.5%Language:CSS 16.5%Language:JavaScript 1.0%Language:Shell 0.5%Language:Dockerfile 0.3%