You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .vscode | 2 years ago | |
| app | 2 years ago | |
| bin | 2 years ago | |
| config | 2 years ago | |
| db | 2 years ago | |
| lib | 2 years ago | |
| log | 2 years ago | |
| public | 2 years ago | |
| storage | 2 years ago | |
| test | 2 years ago | |
| tmp | 2 years ago | |
| vendor | 2 years ago | |
| .dockerignore | 2 years ago | |
| .gitattributes | 2 years ago | |
| .gitignore | 2 years ago | |
| .ruby-version | 2 years ago | |
| Dockerfile | 2 years ago | |
| Gemfile | 2 years ago | |
| Gemfile.lock | 2 years ago | |
| Procfile.dev | 2 years ago | |
| README.md | 2 years ago | |
| Rakefile | 2 years ago | |
| config.ru | 2 years ago | |
README.md
README
Install from scratch Debian 12 (bookworm)
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
[...]
development:
<<: *default
database: ruby-debug
user: ruby-debug
password: ruby-debug
host: ct1.lxd
[...]
rails generate scaffold score name:string grade:integer rails db:migrate
Gemfile
group :development do
[...]
gem 'rubocop', require: false
end
Debugger via ruby-lsp
- run OK, but without Procfile (no more tailwincss/watch)
- attach disfunctions (attach PORT but no interaction/stop/run)
Extensions
- Ruby-lsp
- Ruby-lsp-rails
- Ruby Db Schema
- Markdown All in One