fly.io-rails 0.0.7-x86_64-darwin → 0.0.8-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 636ff4fb57859730aeeaf0987ccd8c201adef2505c1787e8e1041287e8a314ae
4
- data.tar.gz: f85474fdff783fd04a662ddc6e610a7cff3dc2006e7753b4af3f9d24750d7681
3
+ metadata.gz: 186b2eacaa96f600d3079b40d140625c594cef6ec0130335be85f5f8d24606de
4
+ data.tar.gz: 7249e30ab10251bef2b7798fcf263971886b6711088f3de8718993772a6f169a
5
5
  SHA512:
6
- metadata.gz: 16c4722faa187c0e94d91a70f4f9b5d3ce201e3a98408015446bd19dab9a50b1bb3fb15b8db70148e48e496f25535ff8b5d47f50f2cfa0f0668c9d7d38ede24a
7
- data.tar.gz: 244f98ed291281278a253e302d09fbbe2ccabc640246d1135daf7c51021bdafeba6c0f521026e22d11916e2f0bef9971d92e983ab0d3e116d6986ff099951953
6
+ metadata.gz: 9cf7bfde07503c0fbfb87a65fae521811e62438c86d631a8d7afa70c8c572e49140549318744539506c9ff944e8ca4a18a58a36f5721d67e9975fcca5e83f7d7
7
+ data.tar.gz: 38e3833d26dc30a7e7afe1bf558f99d7ee204f2e7a159813ddeebb85d7247ff8e5c28018d2c097bead29bc96e5515f84fde16df88c032d85769c4093adaa0312
data/Rakefile CHANGED
@@ -156,3 +156,8 @@ task package: :download
156
156
 
157
157
  CLOBBER.add(exepaths.map { |path| File.dirname(path) })
158
158
 
159
+ namespace :gem do
160
+ task :push do
161
+ sh 'for i in pkg/*.gem; do gem push $i; done'
162
+ end
163
+ end
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
@@ -7,22 +7,44 @@ terraform {
7
7
  }
8
8
  }
9
9
 
10
+ # Allocate an IPv4 address
10
11
  resource "fly_ip" "<%= @appName %>Ipv4" {
11
12
  app = <%= @app.inspect %>
12
13
  type = "v4"
13
14
  }
14
15
 
16
+ # Allocate an IPv6 address
15
17
  resource "fly_ip" "<%= @appName %>Ipv6" {
16
18
  app = <%= @app.inspect %>
17
19
  type = "v6"
18
20
  }
19
21
 
22
+ /* Uncomment this if you want a volume
23
+ resource "fly_volume" "<%= @appName %>Volume" {
24
+ for_each = toset(<%= @regions.inspect %>)
25
+ region = each.value
26
+
27
+ name = "<%= @appName %>Volume"
28
+ app = <%= @app.inspect %>
29
+ size = 3
30
+ }
31
+ */
32
+
33
+ # Start a fly machine
20
34
  resource "fly_machine" "<%= @appName %>Machine" {
21
35
  for_each = toset(<%= @regions.inspect %>)
22
- app = <%= @app.inspect %>
23
36
  region = each.value
37
+
38
+ app = <%= @app.inspect %>
24
39
  name = "<%= @app %>-${each.value}"
25
40
  image = "quay.io/evl.ms/fullstaq-ruby:<%= @ruby_version %>-jemalloc-slim"
41
+
42
+ # Scale application resources
43
+ cpus = 1
44
+ cputype = "shared"
45
+ memorymb = 256
46
+
47
+ # map http[s] external ports 443 and 80 to internal port 8080
26
48
  services = [
27
49
  {
28
50
  ports = [
@@ -35,8 +57,24 @@ resource "fly_machine" "<%= @appName %>Machine" {
35
57
  handlers = ["http"]
36
58
  }
37
59
  ]
38
- "protocol" : "tcp",
39
- "internal_port" : 8080
40
- },
60
+
61
+ protocol = "tcp"
62
+ internal_port = 8080
63
+ }
64
+ ]
65
+
66
+ /* Uncomment this if you want sqlite3 on a volume
67
+ env = {
68
+ DATABASE_URL = "sqlite3:///mnt/db/production.sqlite3"
69
+ }
70
+
71
+ mounts = [
72
+ {
73
+ volume = "<%= @appName %>Volume"
74
+ path = "/mnt/db"
75
+ }
41
76
  ]
77
+
78
+ depends_on = [fly_volume.<%= @appName %>Volume]
79
+ */
42
80
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Sam Ruby