WebFaction
Community site: login faq

HI,

On webfaction if a log into Rails console Time.zone.now will output a different time zone than the one use by Time.now. I wouldn't normally ask the question here... but as I tried to investigate using the console webfaction killed my server process cause of memory issue... (can't run both my server and the rails c)

So I have no clue where the problem come from?

here's my nginx conf :

  env               GEM_HOME=/home/plehoux/webapps/baboo/gems;
    env TZ=EDT;
    worker_processes  1;

    events {
        worker_connections  1024;
    }

    http {
        access_log  /home/plehoux/logs/user/access_baboo.log  combined;
        error_log   /home/plehoux/logs/user/error_baboo.log   crit;

        include         mime.types;
        passenger_root  /home/plehoux/webapps/baboo/gems/gems/passenger-3.0.3;
        passenger_ruby  /home/plehoux/webapps/baboo/bin/ruby;
        sendfile        on;

        passenger_max_instances_per_app  1;
        rails_spawn_method               conservative;
        passenger_max_pool_size 2;

        server {
        listen             48017;
            passenger_enabled  on;
            root               /home/plehoux/webapps/baboo/abrico/public;
            server_name        localhost;
            rails_env          production;
        }
    }

asked 22 Sep '11, 15:32

plehoux
145
accept rate: 0%

edited 22 Sep '11, 15:51


Solve: added

export TZ="america/new-york"

to ~/webapps/app_name/bin/start

permanent link

answered 22 Sep '11, 16:27

plehoux
145
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×185
×107
×1

question asked: 22 Sep '11, 15:32

question was seen: 3,157 times

last updated: 22 Sep '11, 16:27

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM