inkjet / flask-aws-tutorial Goto Github PK
View Code? Open in Web Editor NEWFlask app that will get you up and running on AWS (also uses RDS as a database)
Flask app that will get you up and running on AWS (also uses RDS as a database)
I added the following to config.py
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# Uncomment the line below if you want to work with a local DB
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data-dev.sqlite')
and run
$ python db_create.py
the database file is created but no table is created.
I have to change Flask-SQLAlchemy==2.0 to Flask-SQLAlchemy==1.0 to make pip install work
Hi,
I think the default WSGIPath is application.py for EB but I need to run:
$python manage.py runserver 0.0.0.0:80
Do you know how to configure EB to run that? Thanks a lot for your help!!
Harry
The only missing part is that I have to install boto using:
$ pip install boto
before doing:
$ eb start
Thanks for a great tutorial!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.