AD1 HW Checklist
AD1 hw checklist
Update files
update
.gitpod.ymlwith extensions.ensure Ruby version is up to date. (2.7.3)
ensure better errors is whitelisted in
config/environments/development.rband containsconfig.web_console.whitelisted_ips = '0.0.0.0/0.0.0.0' BetterErrors::Middleware.allow_ip! '0.0.0.0/0.0.0.0'remove the old whitelist
BetterErrors::Middleware.allow_ip! '10.138.0.0/16'create
.vscode/manage_extensionsif it doesn't exist and contains the following:#!/usr/bin/env ruby unwanted_extensions = [ "k--kato.intellij-idea-keybindings", "kaiwood.endwise", "castwide.solargraph", "jnbt.vscode-rufo", "mbessey.vscode-rufo", ] wanted_extensions = [ "vscode-rufo-0.0.6.vsix" ] unwanted_extensions.each do |extension| results = `code --uninstall-extension #{extension}` if results.include?("successfully uninstalled") status = "." elsif results.include?("is not installed") status = "." else status = "X (#{extension.split(".")[0]})" end print "#{status}" end wanted_extensions.each do |extension| results = `code --install-extension .vscode/#{extension}` if results.include?("success") status = "." else status = "X (#{extension.split(".")[0]})" end print "#{status}" end puts ""Ensure
.vscode/manage_extensionsis executable (runchmod 777 .vscode/manage_extensions).Ensure
.vscode/vscode-rufo-0.0.6.vsixexists. If it doesn't download it from here.create
vendor/bundle/.keepif it doesn't exist.remove
vendor/.keepif it exists.Ensure
Dockerfileis present in the project and up to date w/ correct Ruby version.Ensure
.gitignorefile includes:vendor/bundle/* !vendor/bundle/.keepensure
sqlitedevelopment and test databases are not ignored.# Ignore the default SQLite database. # /db/*.sqlite3 # /db/*.sqlite3-journalensure
bin/setupfile includes:if !Dir.exist?("vendor/bundle/ruby") && Dir.exist?("/base-rails/gems/ruby") FileUtils.cp_r("/base-rails/gems/ruby", "vendor/bundle") system! "bundle config set --local path 'vendor/bundle'" end system! "gem install rufo htmlbeautifier --no-document"before
system! "bundle install".remove
.theiafolder and contents.ensure
.vscodefolder and.vscode/settings.jsonexist and are up to date.ensure
specs_to_readmegem is installed and update the spec list in theREADME.
Gems
ensure
web_gitgem is using themasterbranch and notspring2020.ensure
draft_generatorsgem is using themasterbranch and notwinter2020.ensure
rufoandhtmlbeautifiergems have been added to the:developmentgroup.
Testing
bundle updaterails db:migrateensure you can do the following successfully:
rails srails gradevisit
/git
visit the target app and ensure there are no errors
Update Docker image
Build image
Push to Dockerhub
Update
.gitpod.ymlwith Docker image namePush to GitHub branch
Open workspace from branch, ensure Ruby version is correct and gems install instantly
See Adding Dependencies to a Project for more details on building and testing a Docker image.
Last updated