Added guard for rails server