$> curl "https://gist.githubusercontent.com/pftg/fa8fe4ca2bb4638fbd19324376487f42/raw/f9056244c416d2f56d6d94290e5ecef5960abf66/rejuvenation.rb" | ruby
or
$> ruby rejuvenation.rb
$> yarn install
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
# https://circleci.com/docs/2.0/configuration-reference | |
version: 2 | |
jobs: | |
android: | |
working_directory: ~/project/android | |
docker: | |
- image: circleci/android:api-29-node |
$> curl "https://gist.githubusercontent.com/pftg/fa8fe4ca2bb4638fbd19324376487f42/raw/f9056244c416d2f56d6d94290e5ecef5960abf66/rejuvenation.rb" | ruby
or
$> ruby rejuvenation.rb
$> yarn install
#!/bin/bash | |
set -e | |
set -o pipefail | |
# Kill all backgorund process started in this script | |
#trap "kill 0" EXIT | |
#trap "exit" INT TERM ERR | |
# run background process | |
# wait |
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
# Activate the gem you are reporting the issue against. |
require 'async/http/faraday' | |
require 'async/http/response' | |
require 'async/http/server' | |
require 'async/http/url_endpoint' | |
require 'async/reactor' | |
require 'uri/http' | |
# Make it the global default: | |
Faraday.default_adapter = :async_http |
diff --git a/Gemfile b/Gemfile | |
index 4983412..454bd32 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -11,6 +11,10 @@ gem 'pg', '>= 0.18', '< 2.0' | |
gem 'puma', '~> 3.11' | |
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker | |
gem 'webpacker', '>= 4.0.x' | |
+ | |
+# Turn your Rails app into a Progressive Web App. https://github.com/rossta/serviceworker-rails |
release: bin/heroku-release | |
web: bundle exec puma -C config/puma.rb |
release: bin/heroku-release | |
web: bundle exec puma -C config/puma.rb |
Rails.application.configure do | |
# ... | |
# For Rails 4 we need to add those settings | |
config.serve_static_files = true | |
config.static_cache_control = 'public, max-age=2592000' | |
config.assets.digest = true | |
config.assets.debug = false | |
if ENV['CI'] | |
config.assets.compile = false |
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
environment: | |
BUNDLE_GEMFILE: Gemfile | |
BUNDLE_WITHOUT: "production:staging:development" |