fly.io-rails 0.0.17-x64-mingw32 → 0.0.19-x64-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 448bdbb6127c7a667edff9046476c8408c86a0f85b705fcef5ac3202ee13ead7
4
- data.tar.gz: efa36db561bb51f1a864db4c1203e71f4fab851ed64d28d800eb7cca4038d62d
3
+ metadata.gz: df725e0b66cefb97d360e2ee89d194847a676a84c07901c7d5eca297876a23e9
4
+ data.tar.gz: 69c8b38529e3621b31d27553563bf4607fc0a27c7c9165af6ca7ef4769cda382
5
5
  SHA512:
6
- metadata.gz: e3fdc634dbdb28db42dfd1a71efbb1d767ca4a28e3dba44c5f7e08209ff2bce3dedf33cf4b82ca79958776dcb3c9e8bc6faf6efbba4a03a8ed5de5dc029723b2
7
- data.tar.gz: 35465db8528bde7334ef88f64429028b2d76895833484e82f537707015ac6ecf0f415a48cccd9b3fe3f53f04869fa8d87d8a6e8b32ee6cb62e6bc6e6b6b4128c
6
+ metadata.gz: 20dbb61eb9a481f1198568caced62a22a038153251ed9d6f650d700b6414884e683db716630386e7b9560e9003e762a498c7637f2d47b81e950856cd0f6fc5be
7
+ data.tar.gz: dccbf9c5ca50b32d3c171ac9f0ac3dd1aca92016774a151ea07da65b5417b6405a8f661358c0ea05a2d50a1a33999a287acec834098e68d6b8ab732da4ea7e92
@@ -1,15 +1,3 @@
1
1
  require 'rails/generators'
2
2
  require 'rails/generators/channel/channel_generator'
3
3
  require 'rails/generators/job/job_generator'
4
-
5
- class Rails::Generators::ChannelGenerator
6
- def configure_fly
7
- STDERR.puts 'Configuring fly...'
8
- end
9
- end
10
-
11
- class Rails::Generators::JobGenerator
12
- def configure_fly
13
- STDERR.puts 'Configuring fly...'
14
- end
15
- end
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.17'
2
+ VERSION = '0.0.19'
3
3
  end
@@ -45,7 +45,7 @@ RUN mkdir -p tmp/pids
45
45
  RUN curl https://get.volta.sh | bash
46
46
  ENV VOLTA_HOME /root/.volta
47
47
  ENV PATH $VOLTA_HOME/bin:/usr/local/bin:$PATH
48
- RUN volta install node@${NODE_VERSION}
48
+ RUN volta install node@${NODE_VERSION} yarn
49
49
 
50
50
  <% end -%>
51
51
  #######################################################################
@@ -85,7 +85,7 @@ FROM build_deps as node_modules
85
85
  COPY package*json ./
86
86
  <% if @yarn -%>
87
87
  COPY yarn.* ./
88
- RUN volta install yarn && yarn install;
88
+ RUN yarn install
89
89
  <% else -%>
90
90
  RUN npm install
91
91
  <% end -%>
@@ -17,7 +17,21 @@ namespace :fly do
17
17
  # - full access to secrets, databases
18
18
  # - failures here result in VM being stated, shutdown, and rolled back
19
19
  # to last successful deploy (if any).
20
- task :server do
20
+ task :server => :swapfile do
21
21
  sh 'bin/rails server'
22
22
  end
23
+
24
+ # optional SWAPFILE task:
25
+ # - adjust fallocate size as needed
26
+ # - performance critical applications should scale memory to the
27
+ # point where swap is rarely used. 'fly scale help' for details.
28
+ # - disable by removing dependency on the :server task, thus:
29
+ # task :server do
30
+ task :swapfile do
31
+ sh 'fallocate -l 512M /swapfile'
32
+ sh 'chmod 0600 /swapfile'
33
+ sh 'mkswap /swapfile'
34
+ sh 'echo 10 > /proc/sys/vm/swappiness'
35
+ sh 'swapon /swapfile'
36
+ end
23
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.19
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-19 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fly-ruby