https://github.com/casl0/rails_devcontainer_template
https://github.com/casl0/rails_devcontainer_template
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/casl0/rails_devcontainer_template
- Owner: CASL0
- License: mit
- Created: 2023-12-02T08:22:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-03T04:17:55.000Z (over 2 years ago)
- Last Synced: 2025-02-26T00:27:00.132Z (over 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rails_devcontainer_template
Rails の DevContainer 用テンプレート
## Getting Started
1. コマンドパレット(Ctrl+Shift+P)から[Open Folder in Container]を選択し、DevContainer で開きます。
1. rails をインストールします。
`gem install rails`
1. 以下のコマンドを実行し、プロジェクトを作成します。
`rails new .`
1. `config/database.yml`に DB の設定値を投入します。
```yml
username: <%= ENV['DATABASE_USER'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
host: <%= ENV['DATABASE_HOST'] %>
```