- Install Docker. Ubuntu, Mac, Windows. The following instructions are for Linux and Mac. No promises for Windows.
- On Linux, the daemon is running after install. Just add yourself to the
docker
group withsudo usermod -aG docker <username>
. On Mac, launch Docker.app to start the daemon. No privilege changes are needed.
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
New AWS production server: | |
----------------------------------------------------------------------------------- | |
passenger.conf: | |
LoadModule passenger_module /usr/local/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/passenger-5.0.2/buildout/apache2/mod_passenger.so | |
<IfModule mod_passenger.c> | |
PassengerRoot /usr/local/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/passenger-5.0.2 | |
PassengerDefaultRuby /usr/local/rbenv/versions/2.1.1/bin/ruby | |
</IfModule> | |
Old production server: |
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
# Development logging helper. Call with CG.devlog(your_stuff) | |
# message: The stuff you want printed by the server | |
# skip_header: By default, include the file, line number, and method name as a header. Override with false. | |
# newline: By default, output a blank line before the logged output. Override with false. | |
def devlog(message='', skip_header=false, newline=true) | |
puts '' if newline | |
header = skip_header ? '' : "#{caller[0].gsub(Rails.root.to_s, '').gsub(":in `", ' method:').gsub("'", '')}: " | |
puts "#{header}#{message}" | |
end | |
end |