Git Product home page Git Product logo

wagtail.org's Introduction

Wagtail.org

This is the source code to Wagtail's website

Open in Gitpod

Installation (Docker Compose)

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

git clone https://github.com/wagtail/wagtail.org.git
cd wagtail.org
make setup

This will create a set of Docker containers on your local machine and also create a blank database.

Starting the development environment

Run the following command to start the Docker containers:

make start

Then, to start the development server, run:

make runserver

This will launch django-admin runserver in the web container, which serves Wagtail on http://localhost:8000/

Creating a superuser

To create a new superuser locally, run:

make superuser

Pulling production data / media

If you'd like to work with production data and have access, run the following commands:

make pull-production-data
make pull-production-media

(you will be prompted to log in to Heroku both times. To log in, hit enter when it asks you and copy and paste the URL it gives you into a browser)

Installation (Vagrant)

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.org.git
cd wagtail.org
vagrant up

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

You will need to apply migrations, create a super user, and create a cache table once the vagrant environment is setup.

vagrant ssh
./manage.py migrate
./manage.py createsuperuser
./manage.py createcachetable

Usage (Vagrant)

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

docs.wagtail.org

Wagtail documentation is hosted at readthedocs. A Cloudflare worker is in place to rewrite canonical URLs on old versions of the documentation - see conf/wagtaildocs-cloudflare-worker.js.

wagtail.org's People

Contributors

nicklee avatar m1kola avatar tm-kn avatar kaedroho avatar tijani-dia avatar zerolab avatar stormheg avatar kalobtaulien avatar chris-lawton avatar jacobtoppm avatar realorangeone avatar balazs-endresz avatar bertrandbordage avatar dependabot[bot] avatar tomdyson avatar thibaudcolas avatar siimonevans avatar brianxu20 avatar hminnovation avatar tomusher avatar alexgleason avatar allcaps avatar unixwitch avatar lb- avatar gasman avatar nimasmi avatar ababic avatar chrxr avatar larathompson avatar nmorduch avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.