fly.io-rails 0.1.17-x86_64-darwin → 0.1.18-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/x86_64-darwin/flyctl +0 -0
- data/lib/fly.io-rails/actions.rb +10 -10
- data/lib/fly.io-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2969a2977d1b9760fc0db62764a4a4c0aae3ce2d0d7eef03c68e0a13a238ea3
|
4
|
+
data.tar.gz: eac7308934153271be184aa2c8476265df6beca863cf6c50781eb1939a4dc90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce055b8bd24219ca080af782fe0eb5cab99413338b6755039af9c6bf70cf612563fad12749c99a0b5fd30c5f11b06dc4f775a84a4ceed7ce6d13d933fa657927
|
7
|
+
data.tar.gz: 4ae1060171b00617d3240e7da81e0780023d2cc6093c562b05ffb32c37394f73db32e0535357be513ae808437185dd283d387dc44e4124f3d99b8978b33e8715
|
data/exe/x86_64-darwin/flyctl
CHANGED
Binary file
|
data/lib/fly.io-rails/actions.rb
CHANGED
@@ -237,8 +237,8 @@ module Fly
|
|
237
237
|
output[%r{redis://\S+}]
|
238
238
|
end
|
239
239
|
|
240
|
-
def release(app,
|
241
|
-
start = Fly::Machines.create_and_start_machine(app,
|
240
|
+
def release(app, options)
|
241
|
+
start = Fly::Machines.create_and_start_machine(app, options)
|
242
242
|
machine = start[:id]
|
243
243
|
|
244
244
|
if not machine
|
@@ -322,9 +322,6 @@ module Fly
|
|
322
322
|
|
323
323
|
# default config
|
324
324
|
config = {
|
325
|
-
region: @region,
|
326
|
-
app: app,
|
327
|
-
name: "#{app}-machine",
|
328
325
|
image: image,
|
329
326
|
guest: {
|
330
327
|
cpus: @config.machine.cpus,
|
@@ -353,7 +350,7 @@ module Fly
|
|
353
350
|
|
354
351
|
# perform release
|
355
352
|
say_status :fly, release_config[:env]['SERVER_COMMAND']
|
356
|
-
event, exit_code, machine = release(app, release_config)
|
353
|
+
event, exit_code, machine = release(app, region: @region, config: release_config)
|
357
354
|
|
358
355
|
if exit_code != 0
|
359
356
|
STDERR.puts 'Error performing release'
|
@@ -410,19 +407,22 @@ module Fly
|
|
410
407
|
|
411
408
|
# start app
|
412
409
|
machines = {}
|
410
|
+
options = {region: @region, config: config}
|
413
411
|
say_status :fly, "start #{app}"
|
414
412
|
if not toml['processes'] or toml['processes'].empty?
|
415
|
-
|
413
|
+
options[:name] = "#{app}-machine",
|
414
|
+
start = Fly::Machines.create_and_start_machine(app, options)
|
416
415
|
machines['app'] = start[:id]
|
417
416
|
else
|
418
417
|
config[:env] ||= {}
|
419
418
|
config[:env]['NATS_SERVER'] = 'localhost'
|
420
419
|
toml['processes'].each do |name, entrypoint|
|
420
|
+
options[:name] = "#{app}-machine-#{name}"
|
421
421
|
config[:env]['SERVER_COMMAND'] = entrypoint
|
422
|
-
start = Fly::Machines.create_and_start_machine(app,
|
422
|
+
start = Fly::Machines.create_and_start_machine(app, options)
|
423
423
|
|
424
424
|
if start['error']
|
425
|
-
STDERR.puts start.
|
425
|
+
STDERR.puts "ERROR: #{start.error}"
|
426
426
|
exit 1
|
427
427
|
end
|
428
428
|
|
@@ -499,7 +499,7 @@ module Fly
|
|
499
499
|
# perform release, if necessary
|
500
500
|
if (IO.read('lib/tasks/fly.rake') rescue '') =~ /^\s*task[ \t]*+:?release"?[ \t]*\S/
|
501
501
|
say_status :fly, config[:env]['SERVER_COMMAND']
|
502
|
-
event, exit_code, machine = release(app, config)
|
502
|
+
event, exit_code, machine = release(app, region: @region, config: config)
|
503
503
|
else
|
504
504
|
exit_code = 0
|
505
505
|
end
|
data/lib/fly.io-rails/version.rb
CHANGED