This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "activerecord", "5.2.1", require: "active_record" | |
gem "sqlite3" | |
end | |
ActiveRecord::Base.establish_connection( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
gem "activerecord", "5.2.0", require: "active_record" | |
gem "sqlite3" | |
end | |
ActiveRecord::Base.establish_connection( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Fizz | |
def call(target, max, state) | |
if target % 3 == 0 | |
state << "fizz" | |
end | |
super | |
end | |
end | |
module Buzz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/inirializers/rack_deflater.rb | |
Rails.configuration.middleware.use(Rack::Deflater) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
build: | |
machine: | |
docker_layer_caching: true | |
steps: | |
- checkout | |
- run: | |
command: docker-compose build | |
name: docker-compose build | |
- run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.4.2 | |
WORKDIR /app | |
COPY \ | |
Gemfile \ | |
Gemfile.lock \ | |
/app/ | |
RUN bundle install --jobs=4 --path=/bundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
/* ... */ | |
watchOptions: { | |
poll: true | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.configure do | |
config.file_watcher = ActiveSupport::FileUpdateChecker | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
node: | |
build: | |
context: . | |
dockerfile: ./docker/node/Dockerfile | |
volumes: | |
- node_modules:/app/node_modules | |
rails: | |
build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<% server_render_js("head = Helmet.rewind()") %> | |
<%= server_render_js("head.title.toString()") %> | |
<%= server_render_js("head.meta.toString()") %> | |
<%= server_render_js("head.link.toString()") %> | |
<%= csrf_meta_tags %> | |
<%= stylesheet_link_tag webpack_asset_url("client.css"), media: "all" %> |