Friday, January 3, 2020
running simple django application in aws
By default, only SSH has been enabled in the security for the fresh server in AWS
Change the security group
Add another rule for port 8000
Viola
Installing Supervisor
sudo apt-get install -y supervisor
in /etc/supervisor/conf.d create gunicorn.conf file
sudo mkdir /var/log/gunicorn
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl status
in /etc/nginx/sites-available create django-simple.conf file
sudo nginx -t
sudo ln django-simple.conf /etc/nginx/sites-enabled/
static files and image were not loaded properly
add this line
sudo systemctl nginx reload
creating new python environment using venv
sudo apt-get install python3-venv
python3 -m venv env
apt-get install python3-venv
python3 -m venv env
apt-get install python3-venv
create new key pair
when creating AMI, you have option to select existing key pair or create a new one
after creating the AMI, the key name value is showing in the list
when you encounter this problem, just reference this link https://unix.stackexchange.com/questions/115838/what-is-the-right-file-permission-for-a-pem-file-to-ssh-and-scp
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
One of the functionality in our system is can able to generate a report using Jasper report. We have a Jasper server setup in another ip ad...
-
https://www.liquidweb.com/kb/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts/