This file contains 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
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
# Either add this to your Gemfile's development, test group or both, or install the gems and require them before running this | |
# gem 'ffaker' | |
# gem 'randumb' | |
# | |
class Fakeout | |
# START Customizing | |
# e.g. this example fakes out, Users, Questions |
This file contains 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
require "rack-rewrite" | |
ENV['RACK_ENV'] ||= 'development' | |
if ENV['RACK_ENV'] == 'development' | |
ENV['SITE_URL'] = 'yoursite.local:3000' | |
else | |
ENV['SITE_URL'] = 'yoursite.com' | |
end |