SSH into Root
$ ssh [email protected]
Change Root Password
| class MyImage extends React.Component { | |
| render () { | |
| return ( | |
| <img src="<%= asset_url('path/to/image.png') %>" /> | |
| ); | |
| } | |
| } |
| // | |
| // 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
Follow this guide until it gets to the upstart parts and then
follow the steps below (http://codepany.com/blog/rails-5-puma-capistrano-nginx-jungle-upstart/):
Add to Gemfile:
group :development do
gem 'capistrano', '~> 3.6'
gem 'capistrano-rails', '~> 1.1'
| [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 |
| class TournamentsController < ApplicationController | |
| # GET /tournaments/new | |
| def new | |
| @form = TournamentSubmissionForm.new | |
| end | |
| # POST /tournaments | |
| def create | |
| @form = TournamentSubmissionForm.from_params(params) |
| 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 |
| POSTGRES_USER=phelps | |
| POSTGRES_PASS=phelps | |
| POSTGRES_HOST=localhost |
| image: benphelps/docker-ruby-phantomjs:latest | |
| Testing: | |
| services: | |
| - postgres:latest | |
| variables: | |
| POSTGRES_DB: test | |
| POSTGRES_HOST: postgres | |
| POSTGRES_USER: testuser | |
| POSTGRES_PASS: testuser | |
| environment: test |