From ea15e2e87d375419a326cb678a7c444311536f29 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 4 Jan 2024 21:11:58 +0400 Subject: [PATCH] emmet --- .vscode/launch.json | 2 +- .vscode/settings.json | 23 +++++++++++++---------- README.md | 10 ++++++++++ 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ab09ff0..1112a96 100644 --- a/.vscode/launch.json +++ b/.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", }, ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 36f760e..0acec68 100644 --- a/.vscode/settings.json +++ b/.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 - }, - } \ No newline at end of file + // 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" + } +} \ No newline at end of file diff --git a/README.md b/README.md index 74bb93a..b9b1c80 100644 --- a/README.md +++ b/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