fly.io-rails 0.0.18-x64-mingw32 → 0.0.19-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: 63b13ee52a02e4e430032d924297863512c3a0113e0587d99f12e9205e0495e9
4
- data.tar.gz: a9247e8689f7e2620982a5f5b88f9374989c8c545d7e46a7aff0e8d1811f4a85
3
+ metadata.gz: df725e0b66cefb97d360e2ee89d194847a676a84c07901c7d5eca297876a23e9
4
+ data.tar.gz: 69c8b38529e3621b31d27553563bf4607fc0a27c7c9165af6ca7ef4769cda382
5
5
  SHA512:
6
- metadata.gz: 3650fe4caecdc963ed99401e0f673be2627db871fed5e184eb9d7dec63fe1fb4b96e9660053d4d6423e3e081f79454610095bd72f348508bc9773120a35db0b4
7
- data.tar.gz: ba2276d0779de77cfdd7c8b159314449a1d3ddd35a8b04c3420cffecbaebc50cbb70b9819ff2f9c1bbac7ed393fba38c2bb5a872e65b479a029ac47d5aae213e
6
+ metadata.gz: 20dbb61eb9a481f1198568caced62a22a038153251ed9d6f650d700b6414884e683db716630386e7b9560e9003e762a498c7637f2d47b81e950856cd0f6fc5be
7
+ data.tar.gz: dccbf9c5ca50b32d3c171ac9f0ac3dd1aca92016774a151ea07da65b5417b6405a8f661358c0ea05a2d50a1a33999a287acec834098e68d6b8ab732da4ea7e92
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  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,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.18
4
+ version: 0.0.19
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Sam Ruby