fly.io-rails 0.0.7-arm64-darwin → 0.0.8-arm64-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: 9619180488ff4b6bc0b27ef9c9721d348c2896a8b05224ac458c099faedd6b5e
4
- data.tar.gz: 86eb759dfa16eb13f8f98a32d05a70f82ba343b768b84d969aaba6e0e6753317
3
+ metadata.gz: 56174eebb7cc5c39c3e2552e5729ec01908be4db2eb3784509712041cd93b85d
4
+ data.tar.gz: 43c8f47064ca51f0e11885f5c8fab19a62b7072a345c0611f944df9e05712430
5
5
  SHA512:
6
- metadata.gz: 8c02a858476358687062fcca0241249b6ffd76e514c0657b90f02baa4e3bdbb4edbaa50da6dd77c9a33d00baada5341579dc391f43d18a9ff706c803ad4e66d2
7
- data.tar.gz: a6f996c1d10dcc775352d1cefbd225174a0dc7c3fa192f334c4c70a4f6aa00ae8a38137fa140f7f8844b6772df22463b9f3a04755df9de7371a961be6f70bdac
6
+ metadata.gz: 550459cd5353f0766d1d51c85ee32961953dde5d0478c664548bf14baed732fef58ab6fc790d173ce73825dac6fc777bebd15bb9bfc7229381a126ac99a7da9c
7
+ data.tar.gz: 49adc0119b9495a66952c93d2f2de0db5a4938e6ee4203888116de3bb90700c2799d3fb78855a56bba79a89d0d2800fa668f9f8202dae340a32b3285f6a7f635
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: arm64-darwin
6
6
  authors:
7
7
  - Sam Ruby