You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
Steps for deployment
Setup python environment
-
Install python 3.7
-
Create virtualenv
-
Create a new django project
Install restscrape package
Set up PostgreSQL
-
Install postgres
-
Create database name
CREATE DATABASE {database_name};
-
Create username and password for postgres
CREATE USER {user_name} WITH PASSWORD '{password}';
-
Set database parameters
ALTER ROLE {user_name} SET client_encoding TO 'utf8';
ALTER ROLE {user_name} SET default_transaction_isolation TO 'read committed';
ALTER ROLE {user_name} SET timezone TO 'UTC';
-
Give privileges to user
GRANT ALL PRIVILEGES ON DATABASE {database_name} TO {user_name};
-
Make user supseruser
ALTER ROLE {user_name} superuser;
Set up celery requirements
Set up RabitMQ for message broker [/]
Set up Redis for results store [2/3]
-
Make sure that it isn't persisting to disk
-
Ensure systemd is the supervised
-
Start redis