python-3.6.2
- you might need to add Github to known hosts: https://stackoverflow.com/a/29380765/5405197
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- Config your github credentials:
git config --global user.email "email@example.com"
git config --global user.name
-
Clone
-
Install Postgresql 9.6 (because it has JSONb support which is need for out JsonField) Follow this tutorial but replace
postgresql
withpostgresql96
.
Linux (cloud 9)
sudo yum install postgresql96 postgresql96-server postgresql96-devel postgresql96-contrib postgresql96-docs -y;
sudo service postgresql96 initdb;
sudo vim /var/lib/pgsql96/data/postgresql.conf;
sudo vim /var/lib/pgsql96/data/pg_hba.conf
sudo service postgresql start;
Fedora source
sudo dnf install https://download.postgresql.org/pub/repos/yum/9.6/fedora/fedora-31-x86_64/pgdg-fedora-repo-latest.noarch.rpm
sudo dnf install postgresql96 postgresql96-server postgresql96-devel postgresql96-contrib
If that doesn't work try this tutorial. You can probably skip the updating step.s
rpm -ivh https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum update
yum install postgresql96 postgresql96-server postgresql96-libs postgresql96-contrib postgresql96-devel
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
-
Add 2 users. 1 is going to be the "ec2-user" then make another user with all the same credentials and use your username
-
Clone atila-django
-
Add Postgres to Django: this tutorial
source install.sh;
-
Add your environment variables to
.env
file:- Set ATILA_ALLOWED_HOSTS to your cloud 9 URl (it will be of form:
<cloud_9_id>.vfs.cloud9.us-east-1.amazonaws.com
)
- Set ATILA_ALLOWED_HOSTS to your cloud 9 URl (it will be of form:
source .env
python manage.py migrate
source start.sh -p 8080