- Get link
- X
- Other Apps
flask app publish in ec2 aws ubantu server
you need a flask app code and server access
right now i have a server access with .pem key
open in terminal ->
write a command
scp : command
-i : option pera
*.pem : your server key
flask-code.zip : local file
ubuntu@ec2.... : server url..... com: your server url after com: file goes to user main dir
$ ssh -i mykey.pem ubuntu@ec2-18-xx-xx-9.us-east-2.compute.amazonaws.com
now you access server terminal
use tmux for run flask code '
goto terminal : type " tmux "
are you using 80 port in flask app code
use sudo
$
you need a flask app code and server access
right now i have a server access with .pem key
upload a local file to server using terminal
open in terminal ->
write a command
$ sudo scp -i serverkey.pem flask-code.zip ubuntu@ec2-xx-xxx-xxx-9.us-east-2.compute.amazonaws.com:
scp : command
-i : option pera
*.pem : your server key
flask-code.zip : local file
ubuntu@ec2.... : server url..... com: your server url after com: file goes to user main dir
how to access server
$ ssh -i mykey.pem ubuntu@ec2-18-xx-xx-9.us-east-2.compute.amazonaws.comnow you access server terminal
Run flask code
use tmux for run flask code '
goto terminal : type " tmux "
are you using 80 port in flask app code
use sudo
$
Comments
Post a Comment