Class: Everywhere::Framework::Sinatra

Inherits:
RackFramework show all
Defined in:
lib/everywhere/framework.rb

Instance Method Summary collapse

Methods inherited from RackFramework

#boot!, #cleanup_command, #precompile_env, #prepare_runtime_env

Instance Method Details

#dev_commandObject



175
176
177
# File 'lib/everywhere/framework.rb', line 175

def dev_command
  File.exist?(File.join(root, "bin", "dev")) ? "bin/dev" : "bundle exec rackup --host 127.0.0.1"
end

#env_exportsObject



182
# File 'lib/everywhere/framework.rb', line 182

def env_exports = { "RACK_ENV" => "production" }

#nameObject



173
# File 'lib/everywhere/framework.rb', line 173

def name = "sinatra"

#precompile_commandObject

No asset pipeline by default; nothing to precompile.



180
# File 'lib/everywhere/framework.rb', line 180

def precompile_command = "true"