fly.io-rails 0.0.7-aarch64-linux → 0.0.8-aarch64-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: cda845be4b07c4b9439430e10c8ce1140c76da41ac1af37a0a49ac61496bab87
4
- data.tar.gz: b861a92ce5360ffff563314dd4255c5b75988404f6ad31af4aa7d8e610c4511c
3
+ metadata.gz: df5a4684d794abe49d51be14285a92ca7e7057477558808ee62912b8e79d494f
4
+ data.tar.gz: be78c9041abc8626617702e85c21ee7277334ee12e22149ba5ffc99236d2793f
5
5
  SHA512:
6
- metadata.gz: ca32b44fb9f24fae82d7ed20c845a6faa9821379e270076fafa8088e7c41a0496072beec8d4c14f9296f847e7ca26b93b43ebf9fe3381665074e4278d797dde6
7
- data.tar.gz: b9cb10e04b1aeb2e7eee89eb9afcdc8dd97cd66d05257d887dd19e2e3966d2a9e626a87e1dccfd2b8ae175c4b9833d1db04de158088df80ddcb4a6e500ca4949
6
+ metadata.gz: 5f747e23b334d177c40a07f4d7d2091b3afa58803487a0772519083da4310d60ea66bec5645b34cf07884a3f93c7cd8adc85e67c6e7a9513c9d0039685eefbc0
7
+ data.tar.gz: 4009b8a644041cc55ad2da9db73e02be9948c787230922cab095b51ac0f9264d56ed753370da956cb21ac5fc3652d6028451552b91dd527afdd02985f8ffc243
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: aarch64-linux
6
6
  authors:
7
7
  - Sam Ruby