在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gothinkster/flask-realworld-example-app开源软件地址:https://github.com/gothinkster/flask-realworld-example-app开源编程语言:Python 100.0%开源软件介绍:QuickstartCircleCI build: First, set your app's secret key as an environment variable. For example,
add the following to export CONDUIT_SECRET='something-really-secret' Before running shell commands, set the export FLASK_APP=/path/to/autoapp.py export FLASK_DEBUG=1 Then run the following commands to bootstrap your environment git clone https://github.com/gothinkster/flask-realworld-example-app.git cd flask-realworld-example-app pip install -r requirements/dev.txt Run the following commands to create your app's database tables and perform the initial migration flask db init flask db migrate flask db upgrade To run the web application use: flask run --with-threads DeploymentIn your production environment, make sure the ShellTo open the interactive shell, run flask shell By default, you will have access to the flask Running TestsTo run all tests, run flask test MigrationsWhenever a database migration needs to be made. Run the following commands flask db migrate This will generate a new migration script. Then run flask db upgrade To apply the migration. For a full migration command reference, run |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论