# /etc/cron.d/fr2_data: crontab fragment for 
# retrieving the xml data, etc from the gpo
0,5,10,15,20,25,30,35,40,45,50,55 8-23 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# /etc/cron.d/fr2_data: crontab fragment for 
# retrieving the xml data, etc from the gpo

# Import today's content
#     retries every 5 minutes from 4AM EDT to 2PM
0,5,10,15,20,25,30,35,40,45,50,55 8-18 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# Find the matching regulations.gov URL for articles
#     runs every 30 minutes from 7AM EDT until 5PM 
0,30 11-21 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH content:entries:import:regulations_dot_gov:only_missing >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# Expire pages warning of late content at 9AM
#     runs a 9AM EDT
0 13 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH varnish:expire:pages_warning_of_late_content >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

Refactor database.yml into a single file based on rails environment
Refactor database.yml into a single file based on rails environment