# EC2 SSH Connection
# After downloading the PEM key, move to the directory where it's saved
$ sudo ssh -i "ddip.pem" ubuntu@ec2-13-125-131-81.ap-northeast-2.compute.amazonaws.com
# Switch to the root account and navigate to the directory containing the server code
## Error - Check the current directory if this error occurs
## Error loading ASGI app. Could not import module "main". ##
$ sudo -i
$ cd ddip-server/
# Start server
$ uvicorn main:app
################# Note #################
# Due to the absence of CI/CD implementation, if any changes happen on Git repository, it is necessary to pull the code
$ git pull
# Stop and restart nginx server
$ service nginx restart
# Nginx environment setting file
$ cd
$ vi /etc/nginx/sites-enabled/default
# Fast api environmet setting file
$ cd
$ vi /etc/nginx/sites-enabled/fastapi_nginx
-
Notifications
You must be signed in to change notification settings - Fork 1
teamThum6/ddip-server
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published