Blank page with source?

6 views
Skip to first unread message

pastebin

unread,
Nov 24, 2009, 3:17:26 PM11/24/09
to Lovd by Less
Hey.

I tried to install RoR, everything worked out without any errors
reported.
But when i started "Lovd by less", it shows the text, but the design
is just plain white.
If you disable the CSS it also shows some sql-queries and stuff.

Now, ruby is pretty new to me, about 1 hour or so :)

The page can be viewd on http://83.252.118.79:3000/

Please let me know if you have any ideas.

Thomas R. Koll

unread,
Nov 25, 2009, 3:17:16 AM11/25/09
to lovdb...@googlegroups.com
Hehe,

The css and images files are reference via http://localhost:3000/
which might actually work for most on this list ;-)

For some reason the lines with the asset_host are not commented out
in config/environments/production.rb and development.rb
Just comment them out and it should all be fine.

ciao, tom
--
Thomas R. Koll - Ruby on Rails Webdeveloper
http://photostre.am | http://ananasblau.com | http://github.com/TomK32

pastebin

unread,
Nov 25, 2009, 3:28:25 AM11/25/09
to Lovd by Less
Thank you for your reply.
I commented those lines.
But now, when i try to run it i get :

sudo ./server
=> Booting WEBrick...
=> Rails 2.2.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-11-25 09:26:44] INFO WEBrick 1.3.1
[2009-11-25 09:26:44] INFO ruby 1.8.7 (2009-06-12) [i486-linux]
[2009-11-25 09:26:44] WARN TCPServer Error: Address already in use -
bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in
`create_listeners'
from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
from /usr/lib/ruby/1.8/webrick/utils.rb:70:in
`create_listeners'
from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in
`initialize'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
webrick_server.rb:56:in `new'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
webrick_server.rb:56:in `dispatch'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
servers/webrick.rb:66
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
server.rb:49
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from ./server:3


On Nov 25, 9:17 am, "Thomas R. Koll" <tom...@gmx.de> wrote:
> Hehe,
>
> The css and images files are reference viahttp://localhost:3000/
> which might actually work for most on this list ;-)
>
> For some reason the lines with the asset_host are not commented out
> in config/environments/production.rb and development.rb
> Just comment them out and it should all be fine.
>
> ciao, tom
>
> pastebin wrote:
> > Hey.
>
> > I tried to install RoR, everything worked out without any errors
> > reported.
> > But when i started "Lovd by less", it shows the text, but the design
> > is just plain white.
> > If you disable the CSS it also shows some sql-queries and stuff.
>
> > Now, ruby is pretty new to me, about 1 hour or so :)
>
> > The page can be viewd onhttp://83.252.118.79:3000/
>
> > Please let me know if you have any ideas.
>
> --
> Thomas R. Koll - Ruby on Rails Webdeveloperhttp://photostre.am|http://ananasblau.com|http://github.com/TomK32

Thomas R. Koll

unread,
Nov 25, 2009, 3:31:36 AM11/25/09
to lovdb...@googlegroups.com


pastebin wrote:
> Thank you for your reply.
> I commented those lines.
> But now, when i try to run it i get :
> ...
> [2009-11-25 09:26:44] WARN TCPServer Error: Address already in use -
> bind(2)
> /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
> in use - bind(2) (Errno::EADDRINUSE)


Well, the address is already in use, that might means you didn't kill the
first server...


ciao, tom

pastebin

unread,
Nov 25, 2009, 3:33:30 AM11/25/09
to Lovd by Less
Yeah, i got that working.
Followed http://railsforum.com/viewtopic.php?id=16387 and killed the
ruby-process.
But now, when i try to run it it just stops after this :

./server
=> Booting WEBrick...
=> Rails 2.2.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2009-11-25 09:30:18] INFO WEBrick 1.3.1
[2009-11-25 09:30:18] INFO ruby 1.8.7 (2009-06-12) [i486-linux]
[2009-11-25 09:30:18] INFO WEBrick::HTTPServer#start: pid=17169
port=3000


Is it due to the http://0.0.0.0:3000?
If so, where can i change this?

On Nov 25, 9:31 am, "Thomas R. Koll" <tom...@gmx.de> wrote:
> pastebin wrote:
> > Thank you for your reply.
> > I commented those lines.
> > But now, when i try to run it i get :
>  > ...
> > [2009-11-25 09:26:44] WARN  TCPServer Error: Address already in use -
> > bind(2)
> > /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
> > in use - bind(2) (Errno::EADDRINUSE)
>
> Well, the address is already in use, that might means you didn't kill the
> first server...
>
> ciao, tom
>
> --
> Thomas R. Koll - Ruby on Rails Webdeveloperhttp://photostre.am|http://ananasblau.com|http://github.com/TomK32

Thomas R. Koll

unread,
Nov 25, 2009, 3:43:22 AM11/25/09
to lovdb...@googlegroups.com
Hi pastebin,


No it doesn't stop, it waits.
and 0.0.0.0 doesn't mean anything and everything at the same time.
Just type in the ip from your first mail and you're fine.

ciao, tom


pastebin wrote:
> Yeah, i got that working.
> Followed http://railsforum.com/viewtopic.php?id=16387 and killed the
> ruby-process.
> But now, when i try to run it it just stops after this :
>
> ./server
> => Booting WEBrick...
> => Rails 2.2.2 application started on http://0.0.0.0:3000
> => Ctrl-C to shutdown server; call with --help for options
> [2009-11-25 09:30:18] INFO WEBrick 1.3.1
> [2009-11-25 09:30:18] INFO ruby 1.8.7 (2009-06-12) [i486-linux]
> [2009-11-25 09:30:18] INFO WEBrick::HTTPServer#start: pid=17169
> port=3000
>
>
> Is it due to the http://0.0.0.0:3000?
> If so, where can i change this?




pastebin

unread,
Nov 25, 2009, 3:48:05 AM11/25/09
to Lovd by Less
Hi there Tom.

Thank you for all your help.
I belive that the reason that i can't access the server is some kind
of ssl och port issue.
I'm gona look into it a bit more.

Again, thanks a lot!

Best regards,
Nick

On Nov 25, 9:43 am, "Thomas R. Koll" <tom...@gmx.de> wrote:
> Hi pastebin,
>
> No it doesn't stop, it waits.
> and 0.0.0.0 doesn't mean anything and everything at the same time.
> Just type in the ip from your first mail and you're fine.
>
> ciao, tom
>
>
>
> pastebin wrote:
> > Yeah, i got that working.
> > Followedhttp://railsforum.com/viewtopic.php?id=16387and killed the
> > ruby-process.
> > But now, when i try to run it it just stops after this :
>
> > ./server
> > =>  Booting WEBrick...
> > =>  Rails 2.2.2 application started onhttp://0.0.0.0:3000
> > =>  Ctrl-C to shutdown server; call with --help for options
> > [2009-11-25 09:30:18] INFO  WEBrick 1.3.1
> > [2009-11-25 09:30:18] INFO  ruby 1.8.7 (2009-06-12) [i486-linux]
> > [2009-11-25 09:30:18] INFO  WEBrick::HTTPServer#start: pid=17169
> > port=3000
>
> > Is it due to thehttp://0.0.0.0:3000?
> > If so, where can i change this?
>
> --
> Thomas R. Koll - Ruby on Rails Webdeveloperhttp://photostre.am|http://ananasblau.com|http://github.com/TomK32
Reply all
Reply to author
Forward
0 new messages