$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]以下を実行すればセットアップは完了するはず。
mysql に接続できなければ .env を編集して自分の環境に合わせてください。
... installed ruby, mysql
$ git clone [email protected]:kure-kosen/cho_kure_web.git
$ cd cho_kure_web
$ bin/setup$ git clone [email protected]:kure-kosen/cho_kure_web.git
$ cd cho_kure_web... installed docker-compose
$ docker-compose build
$ docker-compose up
$ docker-compose run backend bin/rails db:create db:schema:load db:seed_furefer to /frontend/README.md
... installed CircleCI Local CLI
$ circleci local execute --job build
$ circleci local execute --job frontend-build
$ circleci local execute --job frontend-test... in production server
$ certbot-auto certificates
$ certbot-auto renew
# $ certbot-auto renew --dry-run
# $ certbot-auto renew --force-renew
$ service nginx restart$ cat ~/.ssh/config
Host cho_kure_web
HostName 52.199.95.54
Port 22
User euglena1215
IdentityFile ~/.ssh/id_rsa
# 2019/12/10, staging server is down.
# Host stg_cho_kure_web
# HostName 13.115.40.132
# Port 22
# User taira
# IdentityFile ~/.ssh/id_rsa- サーバーの ~/.ssh/authorized_keys に IdentityFile 追記する
- deploy したいブランチを GitHub に push する
- branch 名を変更
- production:
set :branch, "master"in (/config/deploy/production.rb) - staging:
set :branch, "feature/{xxxx}"in (/config/deploy/staging.rb)
- production:
$ bundle exec cap (staging | production) deploy$ ssh (stg_cho_kure_web | cho_kure_web)でサーバに入る$ bash ~/deploy_setup.shをサーバー内で実行
- 開発中にアプリケーションが送信したメールは
/letter_openerで確認できます。 bundle exec rubocopでコードの静的チェックが走ります。指摘箇所を修正して PR を出してください。