fly.io-rails 0.0.17-aarch64-linux → 0.0.19-aarch64-linux
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6da7910fca025f08a8e53eae01fb805eb8cd4b6a0c26704cea88662e2c4ee222
|
4
|
+
data.tar.gz: 4356bce2f9ed7eb62396110ae19e5d863f04c0178af82d0a8d760ac0bfd0d32c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 257dcd27d9b58ca45f93126f563ccfa45c061c196689d79c189617d1e24a1d05219d2b4690e6d5a8f268c228109ab7c792dca31c19c8107642e9068d5d7b1ca5
|
7
|
+
data.tar.gz: 3657150a29d84cfe18d50ab6581ad66a45bb7fd606e4147388cd03fa211155a7b988d0a373744c42a94e5176897435d26b7628ad859806b477361dc867942297
|
@@ -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
|
data/lib/fly.io-rails/version.rb
CHANGED
@@ -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
|
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.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fly-ruby
|