fly.io-rails 0.0.7-x64-mingw32 → 0.0.8-x64-mingw32

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: 8fa83dbaeb47d74b132810efe2aec775843fbd4142d204b962e2cff43fb0a3b1
4
- data.tar.gz: d8a015c7949e814393a82acb8357152a155dc76b4bbf9edaa78241bdee61afa2
3
+ metadata.gz: 51cda4c6db485a0353af506f6832e5c0865cf7e93cd37f4af3bffbb36f9961ce
4
+ data.tar.gz: 1a378871a6e08b9aa66e88afa41fdc240b359564e8443b81811e0d03cd84c69a
5
5
  SHA512:
6
- metadata.gz: 53816f3f1be486dd07d685ba7f38936b13e45724d8603752e745585d809b3c71059e835c192ae95c260de70daca263b0deea2e4d7e2116009d5c3d7f121fede5
7
- data.tar.gz: deb29f8c1b3e144cf3487a084662afd13b10f023cab98b1b78056a05c72b63ac2918f905f78c09d90ade980c1cb6f88c7eba1f8ca2656329681208e2b39cdcab
6
+ metadata.gz: e3233ace9bb288ba700478546dfa2c42b627f3f19ef25bcc149174ae4c6dc1c4511c27bbcf749ac36abc52e53f9dad815223e2ab0001de01a7a46b56982ec3da
7
+ data.tar.gz: 92f28e2010b5bca3a698f843f949f57889a977660e9278f2124ac75614478c1cc226e4652e484b7554547a9174a9623ca9e02df3f51adf24cfa144cbe465008a
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: x64-mingw32
6
6
  authors:
7
7
  - Sam Ruby