Add this line to your Gemfile
and run bundle install
# Gemfile
gem "redis"
Create a new initializer to have a global $redis
variable at hand:
[ | |
{ | |
"name": "Charm at the Steps of the Sacre Coeur/Montmartre", | |
"imageUrl": "https://raw.githubusercontent.com/lewagon/flats-boilerplate/master/images/flat1.jpg", | |
"price": 164, | |
"priceCurrency": "EUR", | |
"lat": 48.884211, | |
"lng": 2.346890 | |
}, | |
{ |
# Usage: run `ruby buddies.rb` | |
begin | |
require "round_robin_tournament" | |
rescue LoadError | |
puts "Could not find gem 'round_robin_tournament'" | |
puts "Install it with:" | |
puts | |
puts " gem install round_robin_tournament" | |
exit 1 |
Add this line to your Gemfile
and run bundle install
# Gemfile
gem "redis"
Create a new initializer to have a global $redis
variable at hand:
Depends on the sidekiq-cron
gem.
curl https://gist.githubusercontent.com/ssaunier/e2d488bb931b5dc8df0f329c652eac25/raw/health_check_job.rb > app/jobs/health_check_job.rb
You need to set HEALTH_CHECK_URL
in the prod ENV.
$ rails s [2.3.1] | |
=> Booting Puma | |
=> Rails 5.0.1 application starting in development on http://localhost:3000 | |
=> Run `rails server -h` for more startup options | |
/usr/local/Cellar/rbenv/1.1.0/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.9/lib/sidekiq/version.rb:3: warning: already initialized constant Sidekiq::VERSION | |
/usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.9/lib/sidekiq/version.rb:3: warning: previous definition of VERSION was here | |
/usr/local/Cellar/rbenv/1.1.0/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.9/lib/sidekiq/logging.rb:10: warning: already initialized constant Sidekiq::Logging::Pretty::SPACE | |
/usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.9/lib/sidekiq/logging.rb:10: warning: previous definition of SPACE was here | |
/usr/local/Cellar/rbenv/1.1.0/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.9/lib |
First check you have sublime
as a oh-my-zsh plugin:
$ cat ~/.zshrc | grep plugins=
plugins=(gitfast rbenv last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
# 👆 that's mine
Restart your terminal.
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- [...] --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/navbar.css"> | |
<link rel="stylesheet" href="css/banner.css"> | |
<link rel="stylesheet" href="css/footer.css"> | |
<link rel="stylesheet" href="css/blog.css"> | |
<link rel="stylesheet" href="css/product.css"> |
// Webpack 5 default configuration | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const path = require('path'); | |
module.exports = { | |
mode: 'development', | |
entry: './src/index.js', | |
output: { | |
path: path.resolve(__dirname, './dist'), |
module Cache | |
def from_cache(*args, &block) | |
return yield(self) if ENV['DISABLE_CACHE'] == 'true' | |
expire = default_expire | |
if args.last.is_a?(Hash) | |
options = args.pop | |
expire = options.fetch(:expire, expire) | |
end | |
the_key = key(*args) |