зеркало из https://github.com/mozilla/labs-vcap.git
Allow any whitespace between 'require' and 'sinatra'
in main Sinatra app file Change-Id: I430575cde67eb30db059b0ece554434ee01d246f
This commit is contained in:
Родитель
a14baf8f6b
Коммит
cc89d6bf18
|
@ -24,7 +24,7 @@ app_servers:
|
||||||
executable: false # determined during staging
|
executable: false # determined during staging
|
||||||
default: true
|
default: true
|
||||||
detection:
|
detection:
|
||||||
- "*.rb": "require 'sinatra'|require \"sinatra\"" # .rb files in the root dir containing a require?
|
- "*.rb": "require\\s+'sinatra'|require\\s+\"sinatra\"" # .rb files in the root dir containing a require?
|
||||||
- "config/environment.rb": false # and config/environment.rb must not exist
|
- "config/environment.rb": false # and config/environment.rb must not exist
|
||||||
staged_services:
|
staged_services:
|
||||||
- "name": "mysql"
|
- "name": "mysql"
|
||||||
|
|
|
@ -24,7 +24,7 @@ app_servers:
|
||||||
executable: false # determined during staging
|
executable: false # determined during staging
|
||||||
default: true
|
default: true
|
||||||
detection:
|
detection:
|
||||||
- "*.rb": "require 'sinatra'|require \"sinatra\"" # .rb files in the root dir containing a require?
|
- "*.rb": "require\\s+'sinatra'|require\\s+\"sinatra\"" # .rb files in the root dir containing a require?
|
||||||
- "config.ru": false # use rack if it detects a config.ru
|
- "config.ru": false # use rack if it detects a config.ru
|
||||||
- "config/environment.rb": false # and config/environment.rb must not exist
|
- "config/environment.rb": false # and config/environment.rb must not exist
|
||||||
staged_services:
|
staged_services:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'sinatra'
|
require 'sinatra'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
results = <<-OUT
|
results = <<-OUT
|
||||||
|
|
Загрузка…
Ссылка в новой задаче