Skip to content

The introduction of developing website(by using web site).

License

Notifications You must be signed in to change notification settings

akakou-docs/torima-web101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torima-web101

Torima を使った Web アプリ入門

始め方

1. リポジトリのクローン

git clone https://github.com/akakou-docs/torima-web101
cd torima-web101

2. ngrok の設定・開始

  1. 以下のリンクからアカウント作成 https://dashboard.ngrok.com/signup

  2. 以下のリンクからトークンを取り出す https://dashboard.ngrok.com/get-started/your-authtoken

  3. 以下のコマンドからトークンをサーバに設定し、ngrok を起動する

ngrok config add-authtoken NGROKのトークン
ngrok http ポート番号

3. Torima の設定

これ見て

1. まずは LINE Login を設定!2. Torima 設定ファイルを作りますまでやる

なお、config.yaml では、host を ngrok にかかれている host に書き換えること

torima/config.yaml

host: http://localhost:8080/ # ここを書き換える

port: 8080

default_origin: app:5000

skip_auth_list:
  - "/favicon.ico"

scheme: http

4. Docker のポート番号を書き換える

compose.yaml

proxy:
  image: ghcr.io/ochanoco/torima:develop
  volumes:
    - "./torima/data:/workspace/data"
    - "./torima/config.yaml:/workspace/config.yaml"
  environment:
    - TORIMA_DB_TYPE=sqlite3
    - TORIMA_DB_CONFIG=file:./data/db.sqlite3?_fk=1
  env_file:
    - ./torima/secret.env
  ports:
    - "XXXXX:8080" # ここ

5. 実行

docker-compose up

About

The introduction of developing website(by using web site).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published