fly.io-rails 0.0.18-aarch64-linux → 0.0.19-aarch64-linux

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: b238b37c711cb2447a848ca832f52626859e617dd500c801b9be24be82ace617
4
- data.tar.gz: 293a7560bf7d8984ee71a90e7475b9dbad461770607a8ce4b3703ffd6a1c25f7
3
+ metadata.gz: 6da7910fca025f08a8e53eae01fb805eb8cd4b6a0c26704cea88662e2c4ee222
4
+ data.tar.gz: 4356bce2f9ed7eb62396110ae19e5d863f04c0178af82d0a8d760ac0bfd0d32c
5
5
  SHA512:
6
- metadata.gz: cd39d359601d922e0f55105f0e7a77aae5d4382d99e147f53ca818a473fbfc7770d41e692fb7b457b09abece956090bc9c7d6c714d96d70570da18e4691d4d92
7
- data.tar.gz: 1330be1bd617aaa45f08a6353c3cfaa153b8db37a79c1719cb0c8f827ae766a69510aaa53dabd15a5154954826f622eedf55ce04091d85cf9c688de4b1be8432
6
+ metadata.gz: 257dcd27d9b58ca45f93126f563ccfa45c061c196689d79c189617d1e24a1d05219d2b4690e6d5a8f268c228109ab7c792dca31c19c8107642e9068d5d7b1ca5
7
+ data.tar.gz: 3657150a29d84cfe18d50ab6581ad66a45bb7fd606e4147388cd03fa211155a7b988d0a373744c42a94e5176897435d26b7628ad859806b477361dc867942297
@@ -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: aarch64-linux
6
6
  authors:
7
7
  - Sam Ruby