fly.io-rails 0.0.7-x86-linux → 0.0.8-x86-linux

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: fec8da18f4803d4c34f74611a181bfb7102142ad97c6a358e66648108241b62a
4
- data.tar.gz: 813e10da5f19ba432b38159e9ee8ea660a31a8b04ee25209e4aabfad4245a6f0
3
+ metadata.gz: 05cc425e4002d926c871c0e7ae75a3dfe40149048bfca95bbb3fc49e46554df0
4
+ data.tar.gz: ced706d505663bee32524565766c7bfc13104d118929111b51886e8da23c8db4
5
5
  SHA512:
6
- metadata.gz: c1be9ccab621586393b32d12f3de3df5fdca5aa0249892ef0be7404e540797d30a62d5f3df9281f37fdcd54d8673ff925651adbf16cf37281ea05c8bdd0e7725
7
- data.tar.gz: c67767a80b392ca7054ce350e566ef8bd657e9d5738e0be4a21d971d902b4ad004949ee51e8dde5419c87d4ef4590f6a6e2d0498ead67b8f3662e5ec289044de
6
+ metadata.gz: d5505731989374a0aee14376686e172e11f741438bb3c0e2102fbf183d427974ab9522c2b1a1b25a56e32f9a2a779fd464fe407de0e811abf392cd52fcb76d17
7
+ data.tar.gz: 80ab12b154270a42dd634897a466bf93724d1a43a4a5d9b49d61e7a734c51eb62b25ce84fcc98ce064ade26b43184a677dc0c68e358a248779a1087fcd46b3a1
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-linux
6
6
  authors:
7
7
  - Sam Ruby