Skip to main content

flask app publish in ec2 aws ubantu server

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






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.com



now 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

Popular posts from this blog

Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Tech Easy Solutions Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.  WordPress 5.2.3 hosted on Linux server  need file permission  sudo chown -Rf www-data.www-data  /www/html/worpdressdir change in wp-config

How to delete Torrent power account

Sanjay Tech solutions 3 easy tips to delete torrent power account  Step 1 : login in to your account Step 2 : click on more profile settings Step 3 : you see red button with deactivate account click then enter your password Your account deactivate 

Shopify fully custom contact section block on home page

Tech Easy Solutions Shopify fully custom contact section block on home page <section class="contact-information" >       <!--<div class="left-shape">         <img src="images/left-shape.png" class="img-fluid">       </div>-->       <div class="container c-container">         <div class="row">           <div class="col-lg-6 col-md-6 col-sm-12 col-12">             <div class=" contact-us">                         {% form 'contact' %}                       {% if form.posted_successfully? %}                        <center> <p class="note form-success">                   ...