lib/starter_project/config/lono/api.rb in lono-0.4.1 vs lib/starter_project/config/lono/api.rb in lono-0.4.2
- old
+ new
@@ -1,12 +1,8 @@
template "prod-api-app.json" do
- env,app,role = name.sub('.json','').split('-')
source "app.json.erb"
variables(
- :env => env,
- :app => app,
- :role => role,
:ami => "ami-123",
:instance_type => "m1.small",
:port => "80",
:high_threshold => "15",
:high_periods => "4",
@@ -19,16 +15,12 @@
:ssl_cert => "arn:aws:iam::12345:server-certificate/wildcard"
)
end
template "prod-api-worker.json" do
- env,app,role = name.sub('.json','').split('-')
source "app.json.erb"
variables(
- :env => env,
- :app => app,
- :role => role,
:ami => "ami-123",
:instance_type => "m1.small",
:port => "80",
:high_threshold => "15",
:high_periods => "4",
@@ -42,15 +34,11 @@
:ssl_cert => "arn:aws:iam::12345:server-certificate/wildcard"
)
end
template "prod-api-redis.json" do
- env,app,role = name.sub('.json','').split('-')
source "db.json.erb"
variables(
- :env => env,
- :app => app,
- :role => role,
:ami => "ami-456",
:instance_type => "m1.small",
:port => "80",
:volume_size => "20",
:availability_zone => "us-east-1e"
\ No newline at end of file