Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
What to add to your environment.rb to make rails server start in another time.
days = ENV['TIMECOP_DAYS'].nil? ? 0 : ENV['TIMECOP_DAYS'].to_i
minutes = ENV['TIMECOP_MINUTES'].nil? ? 0 : ENV['TIMECOP_MINUTES'].to_i
Timecop.travel Time.now + days.days
Timecop.travel Time.now + minutes.minutes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.