Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.91 KB

NEW_APP.md

File metadata and controls

53 lines (33 loc) · 1.91 KB

Creating a new app

Veja a versão em português.

Note: For this guideline, is assumed:

  • you have access to WebFaction servers;
  • the app is already created through the WebFaction interface;
  • is already logged into the server through SSH.

Lets get it started... 🙂

Setup the server

  1. In the app directory, remove everything but the Apache directory;

An empty .env file will be created here, but you can touch and fill it already.

TL;DR the next 2 steps: mkdir -p backend.git/.git/ && cd $_ (then, jump to step 4).

  1. Make a directory called backend.git;

Actually could be something_else.git, but lets make backend.git a pattern...

  1. In the backend.git directory, make a directory called .git;

  2. In the .git directory, clone this repo with git clone https://github.com/jourdanrodrigues/bare-django-repo.git .;

Do not forget the final dot

  1. Create a bare repo with git init --bare;

  2. Run the command ./deploy.sh -a to generate the basics for the project.

The "-a" parameter is to make checks over "pip" too.

Note: if you use a Python version different than 2.7, you have to set an app.json in the project.

A deploy is needed for the server to be fully defined.

Finished with the server setup! 🎉

Go to the beginning