Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

deploy django site to aws

# You have to follow up some steps to deploy django project on aws
pip install virtualenv aswebcli
virtualenv -m venv environment_name
cd environment_name
# make directory with .ebextentions name i.e
mkdir .ebextentions
# create a config file
nono .ebextentions/django-config
# once inside, type following code with exact spacing as here
option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: project/wsgi.py
# now deactivate and run
eb init -p python-3.10 project-name-aws
#now you are good to go# it will ask for region, Access Key ID, Secret Key access 
eb init # enter all that is required, got to IAM in aws, Access Key, Secret Access Key
# after eb init run
eb create django-env #usually takes 5 min to create
eb status #in status, there is a linke provided, put that link in ALLOWED_HOST in settings.py
#using command 'nano project-name/settings.py'
eb console # go to configuration
Comment

PREVIOUS NEXT
Code Example
Shell :: Install Deno - Chocolatey (Windows) 
Shell :: move repository from bitbucket to github 
Shell :: git untract file 
Shell :: git hub new repo 
Shell :: execute cron.daily 
Shell :: rmdir unix 
Shell :: Error: Cannot perform an interactive login from a non TTY device 
Shell :: bash read file 
Shell :: git recurse submodules 
Shell :: github push first time 
Shell :: authentication failed for git 
Shell :: reload terminal mac zsh 
Shell :: Command to create the private key and public using the openssl command : 
Shell :: kubectl kubernetes port forward 
Shell :: linux how to execute a script 
Shell :: apache airflow install 
Shell :: mv linux command 
Shell :: how to make directories in linux 
Shell :: nextjs cli 
Shell :: how to exit git in terminal 
Shell :: cat example 
Shell :: Git in Bash 
Shell :: Command of Git Fetch 
Shell :: install sonarqube on ubuntu 
Shell :: git merging to branch from branch 
Shell :: install babel language 
Shell :: packet tracer 2.7.1 Full Config BC-3 Router 
Shell :: get total hdd space linux 
Shell :: powershell decompress zip 
Shell :: patch a file in vendor 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =