- Add gems to Gemfile:
gem "sassc-rails"
gem "image_processing", "~> 1.2"
gem "devise"
# In development group:
gem "rails-erd"
require 'net/http' | |
require 'uri' | |
# === Remove Comments in Gemfile === | |
# Path to the Gemfile | |
gemfile_path = 'Gemfile' | |
# Read the content of the Gemfile | |
gemfile_content = File.read(gemfile_path) | |
# Remove comments from the Gemfile | |
gemfile_content.gsub!(/^#.*$/, '') |
gem "sassc-rails"
gem "image_processing", "~> 1.2"
gem "devise"
# In development group:
gem "rails-erd"
gem install solargraph | |
gem install rubocop | |
gem install rubocop-performance | |
gem install rubocop-rails | |
gem install rubocop-rspec | |
gem install rubocop-md | |
gem install erb-formatter | |
gem install htmlbeautifier |
{ | |
"[erb]": { | |
"editor.defaultFormatter": "aliariff.vscode-erb-beautify", | |
"editor.formatOnSave": true | |
}, | |
"[jsonc]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[ruby]": { | |
"editor.defaultFormatter": "misogi.ruby-rubocop" |
require: | |
- rubocop-performance | |
- rubocop-rails | |
- rubocop-rspec | |
- rubocop-md | |
AllCops: | |
NewCops: enable | |
Exclude: | |
- "vendor/**/*" |
usr/share/keyrings/
with the command:wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnpkg.gpg > /dev/null
etc/apt/sources.list.d/
with the contents:deb [signed-by=/usr/share/keyrings/yarnpkg.gpg] https://dl.yarnpkg.com/debian/ stable main
#!/bin/bash | |
# Place this file in /var/www/myapp folder | |
cd code | |
git pull | |
bundle config set --local deployment 'true' | |
bundle config set --local without 'development test' | |
bundle install | |
bundle exec rake assets:precompile db:migrate RAILS_ENV=production | |
passenger-config restart-app $(pwd) |
Go to https://myaccount.google.com/apppasswords and generate an App Password
In terminal open the rails credentials
rails credentials:edit
Save the following info: