Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Squashed commit for wsgi and django support for vmc

Original authors:
  Sridhar Ratnakumar <sridharr@activestate.com>
  Gareth Rushgrove <gareth@morethanseven.net>

Change-Id: Id38ae8a1ca22974e9b971b95d59fd7512322f17c
  • Loading branch information...
commit a2266e08083288d3b948e5a11c1c91646f1d477a 1 parent f7cf181
@garethr garethr authored Patrick Bozeman committed
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/cli/frameworks.rb
View
14 lib/cli/frameworks.rb
@@ -13,7 +13,9 @@ class Framework
'JavaWeb' => ['java_web', { :mem => '512M', :description => 'Java Web Application'}],
'Sinatra' => ['sinatra', { :mem => '128M', :description => 'Sinatra Application'}],
'Node' => ['node', { :mem => '64M', :description => 'Node.js Application'}],
- 'Erlang/OTP Rebar' => ['otp_rebar', { :mem => '64M', :description => 'Erlang/OTP Rebar Application'}]
+ 'Erlang/OTP Rebar' => ['otp_rebar', { :mem => '64M', :description => 'Erlang/OTP Rebar Application'}],
+ 'WSGI' => ['wsgi', { :mem => '64M', :description => 'Python WSGI Application'}],
+ 'Django' => ['django', { :mem => '128M', :description => 'Python Django Application'}],
}
class << self
@@ -76,6 +78,16 @@ def detect(path)
# Erlang/OTP using Rebar
elsif !Dir.glob('releases/*/*.rel').empty? && !Dir.glob('releases/*/*.boot').empty?
return Framework.lookup('Erlang/OTP Rebar')
+
+ # Python Django
+ # XXX: not all django projects keep settings.py in top-level directory
+ elsif File.exist?('manage.py') && File.exist?('settings.py')
+ return Framework.lookup('Django')
+
+ # Python
+ elsif !Dir.glob('wsgi.py').empty?
+ return Framework.lookup('WSGI')
+
end
end
nil
Please sign in to comment.
Something went wrong with that request. Please try again.