fly.io-rails 0.0.18-arm64-darwin → 0.0.19-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: 2e3d1d69bd33bbf26909443027ec6dce697822132d45faa753f441f1f713dfd6
4
- data.tar.gz: 00d4141fab5183b7f8e599ae9644c3e9a7d6afc696aa9379cf6d7f8fce738981
3
+ metadata.gz: 840d8adfe7e5493983b7ac95dde1f35b5fd8fd6fdece36aa069bda5f3fef2f00
4
+ data.tar.gz: f9ab0d5776cb9f48fe1c6e97405974ab59677917b0605073d126c1fb291ac3d7
5
5
  SHA512:
6
- metadata.gz: 6aed27c6af464a228f295a0b7c1bf4a45a97b2abfe578f99d5dd5a6ba2c057d855a1897d966aa867b598c964f23364f5539ade204d0ad4ea647de6f1c2530c51
7
- data.tar.gz: 4def36f8f75ebff5126ba123db7912d53d3eb53188a8df0bdbf5efc40853aa3280a3595ae0911aef9422352685680f11bc17ede3cd00ebb63d9b0bbd7c80d470
6
+ metadata.gz: 891a801fe86a27b8b284ef605276e39fd7445a375c0adce471d73dc03dbec75ec52ed4794321f815359f8db31e71543ed3eb85ba37ef1a453cdb597c52462161
7
+ data.tar.gz: 389f6f3063bdae204d68c67f06b0162df72854c640310835c700015ec04980fb4860e3ef42c017cebe05d8b83d013708977dce169b7df6b24486fd8740022e59
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Sam Ruby