Install works fine but can only access app from localhost

48 views
Skip to first unread message

Eric Smith

unread,
Aug 26, 2017, 7:36:17 AM8/26/17
to Fat Free CRM Users
Dear Fat Free CRM Users

Thanks for this wonderful project.

I am able to run the project with the following command and monitor normal output:
% ~/fat_free_crm % s rails server  -p80                                                                           =================================================
=> Booting Thin
=> Rails 5.0.4 application starting in development on http://localhost:80
=> Run `rails server -h` for more startup options
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on localhost:80, CTRL+C to stop
Started GET "/" for 127.0.0.1 at 2017-08-26 12:36:42 +0200
  ActiveRecord::SchemaMigration Load (1.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by HomeController#index as HTML
Filter chain halted as :require_user rendered or redirected
Completed 302 Found in 2101ms (ActiveRecord: 3.3ms)
===============================================

I can then run something like:

And then I can run the app in text mode:
==============================================
Login | About

Fat Free CRM

Login
Username:
[                    ]
Password:
[                    ]
[ ] Remember Me

[Login] or Forgot Password?
Powered by Fat Free CRM v0.15.0.beta.2 © 2008-2017 by Michael Dvorkin and contributors.
=============================================

I see no errors but am limited by the text browser of course at a point.

I cannot access the site from another machine in development mode.

If I run the app in production mode then I *can* access the app from an external machine but the app gives an error:
================================================
app/views/authentications/new.html.haml:10:in `block in _app_views_authentications_new_html_haml___65415635_108662720'
app/views/authentications/new.html.haml:4:in `_app_views_authentications_new_html_haml___65415635_108662720'
Started GET "/login" for 77.165.58.113 at 2017-08-26 00:30:27 +0200
Processing by AuthenticationsController#new as HTML
  Rendering authentications/new.html.haml within layouts/application
  Rendered authentications/new.html.haml within layouts/application (30.8ms)
Completed 500 Internal Server Error in 51ms (ActiveRecord: 3.7ms)

ActionView::Template::Error (undefined method `username' for #<Authentication: no credentials provided>):
     7:     .title= t(:login)
     8:     .section
     9:       .label= t(:username) + ':'
    10:       = f.text_field :username
    11:       .label= t(:password) + ':'
    12:       = f.password_field :password
    13:

app/views/authentications/new.html.haml:10:in `block in _app_views_authentications_new_html_haml___65415635_108662720'
app/views/authentications/new.html.haml:4:in `_app_views_authentications_new_html_haml___65415635_108662720'
=========================================================

When I first succeeded to run the application, I remember that it worked on the default port 3000, however I find that I cannot access it with the (text) browser on that port and have to run it on port 80 now.

I cannot understand the complete process of installing for a access via a specific domain, subdomain or subdirectory. Or whether there is an setup of apache required. 

I would very much appreciate some suggestions on how to solve this issue.

Many thanks
Eric
Reply all
Reply to author
Forward
0 new messages