WebFaction
Community site: login faq

This is the current app I have:

http://jinsei.ygamretuta.me

After following this: http://community.webfaction.com/questions/6846/ruby-192

I was able to setup ruby 1.9.2 and everything went well.

However, when I visit the site, nothing is showing up! :(

I tailed the log file production.log and requests are being sent, but nothing is showing up. A sample request is this:

Started GET "/" for 112.205.135.99 at 2012-05-29 23:04:35 -0500
Processing by BusinessesController#index as HTML
  Rendered businesses/index.html.erb within layouts/application (0.0ms)
Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.3ms)

What could possibly be wrong? Are there other files I should check? My local development works correctly. I have precompiled the assets. My local dev and my webfaction site is both working with a Github repo, synced by Capistrano, so I might have missed a required production setup. Any ideas?

asked 29 May '12, 23:11

Ygam Retuta
146
accept rate: 0%

I have noticed that your application really is giving a response back, when you access it locally:

[me@webNNN ~]$ telnet localhost 12345
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET /
<!DOCTYPE html>
<html>
<head>
  <title>Jinsei</title>
  <link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
  <script src="/assets/application.js" type="text/javascript"></script>
  <meta content="authenticity_token" name="csrf-param" />
<meta content="43//yEWsoBdsB7zUr1a+wFbz6Nqg8Lft7Hpo1Ge4bPo=" name="csrf-token" />
</head>
<body>

<div class="container">
        <p>There are no businesses listed.</p>

</div>

</body>
</html>
Connection closed by foreign host.

So, I thought perhaps the front-end Nginx server was getting in the way, so I tried establishing an SSH tunnel from my local machine:

ssh ssh -L 5678:127.0.0.1:12345 me@webNNN.webfaction.com

And then accessing http://127.0.0.1:5678/ on my local browser - same blank screen. So it appears that your Rails application does indeed send a response when requested, but it doesn't like it when people actually make that request with a real browser. Maybe your application is choking on the HTTP headers being sent?

(30 May '12, 00:04) ryans ♦♦

I'm quite new to this so please elaborate :D If my application is indeed choking on the HTTP headers being sent, what can I do about it?

(30 May '12, 05:11) Ygam Retuta

oh, if this is outside Webfaction's domain and it is my application that's having a problem, please let me know. I will look for rails-based solutions for it

(30 May '12, 05:13) Ygam Retuta

Ok, we're not seeing any general problems on your server, so it looks like this is indeed an issue specific to your application.

(30 May '12, 12:00) seanf

that's hard. This is as basic as a rails app can get, one controller and one model. Hm~ I'll take a look, thanks for your help! :D

(30 May '12, 19:27) Ygam Retuta
Be the first one to answer this question!
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:

×186
×108
×81
×20

question asked: 29 May '12, 23:11

question was seen: 3,192 times

last updated: 30 May '12, 19:27

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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