LoginSignup
0
0

More than 1 year has passed since last update.

pythonanywhereでbottleとlmdbを用いたウェブアプリのデプロイ方法

Posted at

以下に方法を書き留めます。

python3.9のコンソールを1つ立ち上げて、

pip install --user lmdb

でlmdbのインストールが可能。
コンソールはそのまま立ち上げておく

pythonanywhereのwebappsから新しいサイトを作成。
python3.9のbottleを選択

pythonanywhereでアプリを動かす際は、

bottle.run()

の代わりに

application = bottle.default_app()

が必要。
(wsgiを用いて.pyを動かしているため。)
ない場合は書き込む(置換)。

また、ユーザ名_pythonanywhere_com_wsgi.pyの、

project_home =

templates_dir = 

も書き換えが必要

0
0
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
0
0