You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the application the user entity gets required via the load_path configuration.
timetracker-ruby ➤ be lotus server -p 3000 git:master mri-2.1.5
hi
[2014-11-16 11:37:10] INFO WEBrick 1.3.1
[2014-11-16 11:37:10] INFO ruby 2.1.5 (2014-11-13) [x86_64-linux]
[2014-11-16 11:37:10] INFO WEBrick::HTTPServer#start: pid=30579 port=3000
When starting the lotus console the entity isn't required:
timetracker-ruby ➤ be lotus console --applications=app/application.rb git:master mri-2.1.5
irb(main):001:0>
Did some digging.
Application.load is called when starting the app but not when starting the console.
Therefore all frameworks and configurations aren't loaded properly for the console.
When explicitly load! the application in the application class definition the configuration and frameworks are properly loaded for the console, but loaded twice when starting the app.
Given this example application:
And this entity:
When starting the application the user entity gets required via the
load_path
configuration.When starting the lotus console the entity isn't required:
timetracker-ruby ➤ be lotus console --applications=app/application.rb git:master mri-2.1.5 irb(main):001:0>
The whole application can be found under: https://github.com/bennyklotz/timetracker-ruby
The text was updated successfully, but these errors were encountered: