OS X Mavericks, failing specs and libxml
3 Quick Tips for Coding with OS X 10.9 Mavericks Some good tips on homebrew and xcode to get compiling working
Install Ruby on Rails · Mac OS X Mavericks RVM / Homebrew / Git
<script charset="utf-8"> | |
<% if ENV["RAILS_ENV"] == "production" %> | |
var script = "/react-app-bundle.js"; | |
<% else %> | |
console.warn("Development mode. Make sure to start 'node devServer.js'"); | |
var script = "http://" + (location.host || 'localhost').split(':')[0] + ":4000/react-app-bundle.js" | |
<% end %> | |
document.write('<script src="' + script + '"></' + 'script>'); | |
</script> |
OS X Mavericks, failing specs and libxml
3 Quick Tips for Coding with OS X 10.9 Mavericks Some good tips on homebrew and xcode to get compiling working
Install Ruby on Rails · Mac OS X Mavericks RVM / Homebrew / Git
# Capistrano configuration | |
# | |
# require 'new_relic/recipes' - Newrelic notification about deployment | |
# require 'capistrano/ext/multistage' - We use 2 deployment environment: staging and production. | |
# set :deploy_via, :remote_cache - fetch only latest changes during deployment | |
# set :normalize_asset_timestamps - no need to touch (date modification) every assets | |
# "deploy:web:disable" - traditional maintenance page (during DB migrations deployment) | |
# task :restart - Unicorn with preload_app should be reloaded by USR2+QUIT signals, not HUP |
# Copy it to fnordmetric directory and run with | |
# | |
# bundle exec ruby -Ilib -I. populate.rb live | |
# | |
# to generate fake current traffic or | |
# | |
# bundle exec ruby -Ilib -I. populate.rb past | |
# | |
# to generate fake stats for last month. | |
# |
# note - you may need to split into a before-deploy (stop) and after-deploy (start) depending on your setup | |
desc "Hot-reload God configuration for the Resque worker" | |
deploy.task :reload_god_config do | |
sudo "god stop resque" | |
sudo "god load #{File.join deploy_to, 'current', 'config', 'resque.god'}" | |
sudo "god start resque" | |
end | |
after 'deploy:update_code', 'deploy:update_shared_symlinks' |