knox / Llama-Deployment-16.sh
0 likes
0 forks
1 files
Last active
1 | sudo nano /etc/systemd/system/gunicorn.service |
knox / Llama-Deployment-15.sh
0 likes
0 forks
1 files
Last active
1 | pip install gunicorn |
knox / Llama-Deployment-14.sh
0 likes
0 forks
1 files
Last active
1 | python manage.py collectstatic |
knox / Llama-Deployment-13.sh
0 likes
0 forks
1 files
Last active
1 | python manage.py migrate |
knox / Llama-Deployment-12.sql
0 likes
0 forks
1 files
Last active
1 | CREATE DATABASE llama_db; |
2 | CREATE USER llama_user WITH PASSWORD 'your_password'; |
3 | ALTER ROLE llama_user SET client_encoding TO 'utf8'; |
4 | ALTER ROLE llama_user SET default_transaction_isolation TO 'read committed'; |
5 | ALTER ROLE llama_user SET timezone TO 'UTC'; |
6 | GRANT ALL PRIVILEGES ON DATABASE llama_db TO llama_user; |
7 | \q |
8 | exit |
knox / Llama-Deployment-11.sh
0 likes
0 forks
1 files
Last active
1 | sudo -i -u postgres |
2 | psql |
knox / Llama-Deployment-10.sh
0 likes
0 forks
1 files
Last active
1 | sudo apt install -y postgresql postgresql-contrib |
knox / Llama-Deployment-9.env
0 likes
0 forks
1 files
Last active
1 | DEBUG=False |
2 | SECRET_KEY=your_secret_key |
3 | DATABASE_URL=postgres://username:password@localhost:5432/llama_db |
4 | ALLOWED_HOSTS=your_domain.com |
knox / Llama-Deployment-8.sh
0 likes
0 forks
1 files
Last active
1 | touch .env |
2 | nano .env |
knox / Llama-Deployment-7.sh
0 likes
0 forks
1 files
Last active
1 | pip install -r requirements.txt |