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... 🙂
- 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).
- Make a directory called
backend.git
;
Actually could be
something_else.git
, but lets makebackend.git
a pattern...
-
In the
backend.git
directory, make a directory called.git
; -
In the
.git
directory, clone this repo withgit clone https://github.com/jourdanrodrigues/bare-django-repo.git .
;
Do not forget the final dot
-
Create a bare repo with
git init --bare
; -
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! 🎉