create homepage using ChatGPT
You can use this app by adding this account.
2024/7/2 This service has ended.
docker-compose build
docker-compose run web rails db:create
docker-compose run web rails db:migrate
docker-compose run -e EDITOR=vim web rails credentials:edit
# set line_channel_tokendocker-compose up
open http://localhost:3011
- copy config/master.key (this file is ignored from git)
- or you can recreate credentials.yml.enc and master.key:
rm credentials.yml.enc
docker-compose run -e EDITOR=vim web rails credentials:edit
- you need to set
Rails.application.credentials
variables
- you need to set
- or you can recreate credentials.yml.enc and master.key:
docker-compose -f docker-compose.production.yml build
docker-compose -f docker-compose.production.yml run web rails db:create RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1
docker-compose -f docker-compose.production.yml run web rails db:migrate RAILS_ENV=production
docker-compose -f docker-compose.production.yml up -d
- when nginx exit before web started:
docker-compose -f docker-compose.production.yml up -d nginx
When you use line webhook set line_channel_id, line_channel_secret, and line_channel_token in credentials.
ngrok http 3011
- set the url to config.hosts in development.rb
- generate Home controller
docker-compose run web rails g controller Users