Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
// Config options: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/ruby
{
"name": "coderdojo.jp",
"dockerComposeFile": "../docker-compose.yml",
"service": "rails",
"workspaceFolder": "/app",
"overrideCommand": true,

// Universal is well-customized image for Codespaces:
// https://hub.docker.com/_/microsoft-devcontainers-universal
"image": "mcr.microsoft.com/devcontainers/universal:latest",

// Use Ruby image if you want to pin Ruby version like '3.2'
// https://github.com/devcontainers/images/tree/main/src/ruby
//"image": "mcr.microsoft.com/devcontainers/ruby:3.0",
"containerEnv": {
"DATABASE_USER": "postgres",
"DATABASE_PASSWORD": "password",
"DATABASE_HOST": "db",
"DATABASE_PORT": "5432"
},

// Enable learners to choose an affordable spec, starting at minimum one.
//"hostRequirements": {
Expand All @@ -21,12 +24,10 @@

"waitFor": "onCreateCommand",
"onCreateCommand": "gem install solargraph -N",
//"onCreateCommand": "",
//# => Solargraph gem not found. Run `gem install solargraph` or update your Gemfile.
"updateContentCommand": "bundle install",
"postCreateCommand": "",
"postAttachCommand": {
"server": "rails server"
"server": "rm -f /app/tmp/pids/server.pid && rails server -b 0.0.0.0"
},
"customizations": {
"codespaces": {
Expand All @@ -47,7 +48,7 @@
//"ruby.lint": { "rubocop": true },
//"ruby.intellisense": "rubyLocate",
"editor.tabSize": 2,
"editor.renderWhitespace": false,
"editor.renderWhitespace": "none",
"files.associations": { "*.erb": "erb" },
"emmet.includeLanguages": { "erb": "html" },

Expand Down