Class: Openbox::Commands::Server
- Inherits:
-
Openbox::Command
- Object
- Thor::Group
- Openbox::Command
- Openbox::Commands::Server
- Defined in:
- lib/openbox/commands/server.rb
Overview
The Server Command
Instance Method Summary collapse
-
#execute ⇒ Object
Run Application Server.
Methods inherited from Openbox::Command
Instance Method Details
#execute ⇒ Object
Run Application Server
13 14 15 16 17 18 19 |
# File 'lib/openbox/commands/server.rb', line 13 def execute Openbox.database.ensure_connection! invoke Migrate unless ENV['AUTO_MIGRATION'].nil? return exec('bundle exec rails server -b 0.0.0.0') if Openbox.runtime.rails? exec('bundle exec rackup -o 0.0.0.0') end |