LoginSignup
2
1

More than 3 years have passed since last update.

Visual studio 2019でさくっとFlask

Last updated at Posted at 2019-06-09

image.png

image.png

raspberry pi 3 に直接デプロイ

image.png

作成されたファイル

.
├── FlaskWebProject1
│   ├── __init__.py
│   ├── static
│   │   ├── content
│   │   │   ├── bootstrap.css
│   │   │   ├── bootstrap.min.css
│   │   │   └── site.css
│   │   ├── fonts
│   │   │   ├── glyphicons-halflings-regular.eot
│   │   │   ├── glyphicons-halflings-regular.svg
│   │   │   ├── glyphicons-halflings-regular.ttf
│   │   │   └── glyphicons-halflings-regular.woff
│   │   └── scripts
│   │       ├── _references.js
│   │       ├── bootstrap.js
│   │       ├── bootstrap.min.js
│   │       ├── jquery-1.10.2.intellisense.js
│   │       ├── jquery-1.10.2.js
│   │       ├── jquery-1.10.2.min.js
│   │       ├── jquery-1.10.2.min.map
│   │       ├── jquery.validate-vsdoc.js
│   │       ├── jquery.validate.js
│   │       ├── jquery.validate.min.js
│   │       ├── jquery.validate.unobtrusive.js
│   │       ├── jquery.validate.unobtrusive.min.js
│   │       ├── modernizr-2.6.2.js
│   │       ├── respond.js
│   │       └── respond.min.js
│   ├── templates
│   │   ├── about.html
│   │   ├── contact.html
│   │   ├── index.html
│   │   └── layout.html
│   └── views.py
├── FlaskWebProject1.pyproj
├── FlaskWebProject1.pyproj.user
├── FlaskWebProject1.sln
├── obj
│   └── Debug
├── requirements.txt
└── runserver.py

8 directories, 33 files

実行

$ export SERVER_HOST=0.0.0.0 #アドレス設定
$ export SERVER_PORT=8891 # ポート設定
$ python runserver.py
 * Running on http://0.0.0.0:8891/ (Press CTRL+C to quit)

実行結果

image.png

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1