8000 GitHub - Ryuta-prog/rails-docker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ryuta-prog/rails-docker

Repository files navigation

README

環境構築方法

  1. 以下のリポジトリを自分のGitHubアカウント配下に設置 https://github.com/ihatov08/rails7_docker_template 緑色のボタンUse this templateをクリックし、Create a new repositoryを選択 任意のリポジトリ名を入力する(ここではrails-docker)
  2. 設置したリポジトリをローカルにクローン git clone https://github.com/Ryuta-prog/rails-docker
  3. DBはpostgresのversion12を使用 ホストのファイルシステムとコンテナのファイルシステムを同期させる
  4. docker-compose upでrailsプロセスとdbが起動し、http://localhost:3000 でアクセスできるようにする
  5. ただし、初めてアプリケーションを起動する前には、以下のコマンドを実行してデータベースを作成すること
    docker-compose run web rails db:create

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0