Some javascript magic to make this nifty little parallax hero.
A Pen by Dominic Magnifico on CodePen.
| ## Capistrano v3 | |
| # /config/deploy.rb | |
| set :application, '<site_name>' #example.com | |
| set :use_sudo, false | |
| set :build_dir, "build" | |
| set :ssh_login, "<login_details>" #[email protected] | |
| set :deploy_dir, "/var/www/#{fetch(:application)}" | |
| namespace :middleman do |
| set :repository, "[email protected]:repo/repo.git" | |
| set :user, "deploy" | |
| set :use_sudo, false | |
| set :scm, :git | |
| set :keep_releases, 5 | |
| set :domain, "000.000.000.000" | |
| set :application, "my_app" | |
| set :rails_env, "production" | |
| set :branch, "master" | |
| set :deploy_to, "/var/www/#{application}" |
| class Account < ActiveRecord::Base | |
| has_many :users | |
| end |
Some javascript magic to make this nifty little parallax hero.
A Pen by Dominic Magnifico on CodePen.
| # a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
| # NOTE: requires the faker or ffaker gem | |
| # sudo gem install faker - http://faker.rubyforge.org | |
| # OR | |
| # sudo gem install ffaker - http://github.com/EmmanuelOga/ffaker | |
| require 'faker' | |
| class Fakeout |
| // | |
| // Top Bar Variables | |
| // | |
| $include-html-classes: true; | |
| $include-html-top-bar-classes: $include-html-classes; | |
| // Background color for the top bar | |
| $topbar-bg-color: $oil; | |
| $topbar-bg: $topbar-bg-color; |
SSH into Root
$ ssh [email protected]
Change Root Password
| [Unit] | |
| Description=Puma Rails Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| WorkingDirectory=/home/deploy/app/current | |
| ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb | |
| ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop |
| module ApplicationHelper | |
| def retina_image_tag(default_name, options={}) | |
| retina_name = default_name.gsub(%r{\.\w+$}, '@2x\0') | |
| retina_image_tag(default_name, options.merge('data-interchange' => "[#{asset_path(retina_name)}, (retina)]")) | |
| end | |
| end |