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.
pvincent
aaeb75021d
|
11 months ago | |
---|---|---|
.vscode | 11 months ago | |
app | 11 months ago | |
bin | 11 months ago | |
config | 11 months ago | |
db | 11 months ago | |
lib | 11 months ago | |
log | 11 months ago | |
public | 11 months ago | |
storage | 11 months ago | |
test | 11 months ago | |
tmp | 11 months ago | |
vendor | 11 months ago | |
.dockerignore | 11 months ago | |
.gitattributes | 11 months ago | |
.gitignore | 11 months ago | |
.rubocop.yml | 11 months ago | |
.ruby-version | 11 months ago | |
Dockerfile | 11 months ago | |
Gemfile | 11 months ago | |
Gemfile.lock | 11 months ago | |
Procfile.dev | 11 months ago | |
README.md | 11 months ago | |
Rakefile | 11 months ago | |
config.ru | 11 months 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