- Edit the
PRODUCTION_APPandSTAGING_APPvariables at the top of the file. - Set the heroku remotes by running
rake:set_remotes - Once you're ready to deploy, you can run
rake deploy:productionorrake deploy:staging
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
| <%= form_tag form_submit_path do %> | |
| <fieldset> | |
| <legend>Contact Info</legend> | |
| <div class="form-group"> | |
| <%= label_tag :name %> | |
| <%= text_field_tag :name %> | |
| </div> | |
| <div class="form-group"> |
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
| class ApplicationController < ActionController::Base | |
| before_filter :set_rand_cookie | |
| private | |
| def set_rand_cookie | |
| return if cookies[:rand_seed].present? | |
| cookies[:rand_seed] = {value: rand(100), expires: Time.now + 900} | |
| end | |
| end |
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
| ActiveAdmin.register User do | |
| index do | |
| column :id | |
| column :full_name, sortable: :last_name | |
| column :status | |
| default_actions | |
| end | |
| filter :first_name |
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
| gulp = require 'gulp' | |
| gutil = require 'gulp-util' | |
| # contrib modules | |
| streamee = require 'streamee' | |
| concat = require 'gulp-concat' | |
| coffee = require 'gulp-coffee' | |
| uglify = require 'gulp-uglify' | |
| sass = require 'gulp-sass' |
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
| # Don't forget to turn on the rewrite engine | |
| RewriteEngine on | |
| # Maintenance Redirection (lets images and styles through) | |
| RewriteCond %{REQUEST_URI} !maintenance.html | |
| RewriteCond %{REQUEST_FILENAME} !(styles|images).+$ | |
| RewriteRule (.*) /maintenance.html [R,L] |
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
| #!/bin/sh | |
| CURRENT=`git branch | grep '\*' | awk '{print $2}'` | |
| TARGET=$1 | |
| : ${TARGET:="master"} | |
| echo "\033[33m=> git checkout ${TARGET}\033[0m" | |
| git checkout ${TARGET} | |
| echo "\033[33m=> git pull origin ${TARGET}\033[0m" |
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
| gem 'taps' | |
| gem 'sqlite3' # dependency of taps |
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
| // FIXES FOR WYSIWYG EDITOR | |
| li.tinymce { | |
| overflow: auto; | |
| > div { | |
| float: left; | |
| width: 76%; | |
| } | |
| } |
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
| describe 'it should regenerate the guid if one already exists' do | |
| FactoryGirl.create(:user, guid: '123456') | |
| SecureRandom.stub(:hex).and_return('123456', '456789') | |
| user = User.new(email: 'john@email.com', total_budget: 250.00) | |
| user.save | |
| expect(user.reload.guid).to eq(6) | |
| end |