Add the fonts path to your production.rb and development.rb
# Add the font path
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
# Include font files to Assets
config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
This describes the workflow to use Heroku as a staging environment. It assumes you already have an existing heroku app in production.
# rename your git remote heroku to something else like production
git remote rename heroku production
# so now you will push as: git push production master
# create the staging app
heroku apps:create staging-appname
This file is placed in /lib/tasks
and it doesn't matter what is the filename but it must end in .rake eg. some_name.rake
namespace :db do
desc 'Export database into db/seeds.rb'
task :export do
backup_file = 'db/seeds-bkup.rb'
seed_file = 'db/seeds.rb'
puts '*** Exporting database into db/seeds.rb ***'
(function($) {
// create a class in jQuery scope
$.landingVideo = function(options) {
// define a self to be used as the main var
// using 'this' breaks in event passing
var self = {
options: $.extend({
video_player_id: '',
TODO: Check out http://sinonjs.org/ to stub AJAX requests or just stubbing with Jasmine to test expectations
brew install phantomjs
gem 'jasmine-rails'
to group :test, :development
bundle install
rails generate jasmine_rails:install
Note: You don't have to install the jasmine gem from Pivotal. Reference (FYI only): https://github.com/pivotal/jasmine-gem
To access your POW site from GenyMotion, use http://project.192.168.56.1.xip.io
(Ref: http://bbowden.tumblr.com/post/58650831283/accessing-a-localhost-server-from-the-genymotion)
This guide explains the way to setup a production server using Capistrano.
# Gemfile
# Use Capistrano for deployment