pvincent 11 months ago
parent
commit
ea15e2e87d
  1. 2
      .vscode/launch.json
  2. 23
      .vscode/settings.json
  3. 10
      README.md

2
.vscode/launch.json

@ -5,7 +5,7 @@
"type": "ruby_lsp",
"name": "Debug Rails",
"request": "launch",
"program": "bin/rails server",
"program": "bin/rails server --port 3000",
},
]
}

23
.vscode/settings.json

@ -1,11 +1,14 @@
{
// All of these settings are scoped only to the Ruby language
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp", // Use the Ruby LSP as the default formatter
"editor.formatOnSave": true, // Format files automatically when saving
"editor.tabSize": 2, // Use 2 spaces for indentation
"editor.insertSpaces": true, // Use spaces and not tabs for indentantion
"editor.semanticHighlighting.enabled": true, // Enable semantic highlighting
"editor.formatOnType": true // Enable formatting while typing
},
}
// All of these settings are scoped only to the Ruby language
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp", // Use the Ruby LSP as the default formatter
"editor.formatOnSave": true, // Format files automatically when saving
"editor.tabSize": 2, // Use 2 spaces for indentation
"editor.insertSpaces": true, // Use spaces and not tabs for indentantion
"editor.semanticHighlighting.enabled": true, // Enable semantic highlighting
"editor.formatOnType": true // Enable formatting while typing
},
"emmet.includeLanguages": {
"erb": "html"
}
}

10
README.md

@ -1,5 +1,15 @@
# README
## Install from scratch Debian 12 (bookworm)
```bash
sudo apt install -y build-essential ruby-dev libpq-dev libyaml-dev
2>/dev/null grep -q GEM_HOME $HOME/.bashrc || printf "export GEM_HOME=$HOME/.ruby\nexport PATH=\$PATH:\$GEM_HOME/bin\n" >> $HOME/.bashrc && source $HOME/.bashrc
[[ -f $HOME/.gemrc ]] || echo 'gem: --no-document' >> $HOME/.gemrc
gem install rails bundler
bundle install
```
## database.yml
```yaml

Loading…
Cancel
Save