-
-
- Terminal >> inside the project folder
python manage.py runserver
- The server will be running locally on http://127.0.0.1:8000/ or http://localhost:8000/
- Terminal >> inside the project folder
-
- Terminal >> inside the project folder
python manage.py runserver 0.0.0.0:8000
0.0.0.0
wil make the server available on all network interfaces- Hosted in your PC accessible by other devices on the same network using your IP
- Terminal >> inside the project folder
-
nohup <command> &
enclosing the command- log file
nohup.out
will be created in the current directory
- log file
-
-
-
- Terminal >>
sudo service redis-server start
- The server will be running locally on http://127.0.0.1:6379/ or http://localhost:6379/
- Terminal >>
-
- Terminal >>
sudo service redis-server --port 6379
6379
is the default port- Hosted in your PC accessible by other devices on the same network using your IP
- Terminal >>
-
-
-
- Terminal >> inside the project folder
sudo celery -A plataforma_backup worker --beat --scheduler django --loglevel=info
- Will run the worker and beat in the same terminal
- Terminal >> inside the project folder
-
- Terminal >> inside the project folder
sudo celery -A plataforma_backup worker --loglevel=info
sudo celery -A plataforma_backup beat --loglevel=info
- Terminal >> inside the project folder
-
--detach
or-d
option in the end of the commandsnohup <command> &
enclosing the command- log file
nohup.out
will be created in the current directory
- log file
-
-
- Terminal >> inside the project folder
pip install -r requirements.txt
- Terminal >> inside the project folder
-
- https://redis.io/
-
- Terminal >>
sudo apt install redis
- Terminal >>
-
- It is important to have the lates version of the PostgreSQL-Client, in order for the commands to work with all server versions
-
- Enable PostgreSQL Package Repository
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null
- Update the package list
sudo apt update
- Install PostgreSQL-Client
sudo apt install postgresql-client
- Check the version
psql --version
- Enable PostgreSQL Package Repository