Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Tracks on a web host  >  Thread
   
 
Development vs Production
 
pauliek
Posted: 12 August 2006 03:45 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2006-07-04

When I installed Tracks at A Small Orange, I set database.yml’s Development and Production info to the same database/user, etc.  While everything’s been working fine, I recently realized that the single biggest consumer of my limited disk space is development.log, which grows consistently.  I assume this means tracks is running in development mode. 

Is there a safe way to move things over to production? 

Thanks.

Profile
 
bsag
Posted: 12 August 2006 05:30 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  185
Joined  2006-03-05

It depends on how you are running Tracks. If you’re running via lighttpd, you can set:


“bin-environment” => ( “RAILS_ENV” => “production” )

inside your fastcgi.server lines in lighttpd.conf.

You can also set the RAILS_ENV variable in Apache somehow, but I’m not sure how you do it on a shared host. It’s probably easier to uncomment the line (line 5) in config/environment.rb:


ENV[’RAILS_ENV’] = ‘production’

If you’re running lighttpd, restart it.

Profile
 
lukemelia
Posted: 13 August 2006 03:29 AM   [ Ignore ]   [ # 2 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

FYI, running a rails app on a shared server in development mode is a Bad Idea. Development mode rails has increased memory usage and possibly even memory leaks. I learned this the hard way (a warning from my ISP), so I figure I’d warn any readers of this thread…

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
   
 
 
‹‹ Installation On Dreamhost      Moving Tracks info from web host to personal computer? ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.0 (20080319)
Script Executed in 0.2508 seconds

Atom Feed
RSS 2.0