fly.io-rails 0.1.9-arm64-darwin → 0.1.11-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca1299964d8cf1dab335bec89177c317e8de29f9e82bdb69758e11252361b289
|
4
|
+
data.tar.gz: 752211a5a2d3969d0ef6f01434d859c15373ca3e3a19ae30b1f2e213adfaf724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 563b98fff1b8aa5710213411cae8510b6f7616aefb2c1c64cf51b24d641da65c6db46e4b373fe58e51a60081715ffd5de47017857c3ac1c3d81970fe62850246
|
7
|
+
data.tar.gz: 85a0c039a2ce4afc3d196c65a700db893dd18cda23e4f4a5831ceed4b743f7dc8fc7470f701d96c1549d0c9c0899a457fdf9c7cb170d6952aead553932f15f4b
|
data/lib/fly.io-rails/actions.rb
CHANGED
@@ -94,8 +94,8 @@ module Fly
|
|
94
94
|
@procs[:web] = "nginx -g 'daemon off;'" if @passenger
|
95
95
|
@procs[:worker] = 'bundle exec sidekiq' if @sidekiq
|
96
96
|
@procs[:redis] = 'redis-server /etc/redis/redis.conf' if @redis
|
97
|
-
@procs.merge! 'anycable-rpc': 'bundle exec anycable',
|
98
|
-
'anycable-go': '/usr/local/bin/anycable-go --port=8082' if @anycable
|
97
|
+
@procs.merge! 'anycable-rpc': 'bundle exec anycable --rpc-host=0.0.0.0:50051',
|
98
|
+
'anycable-go': 'env ANYCABLE_RPC_HOST=$ANYCABLE_GO_RPC_HOST /usr/local/bin/anycable-go --port=8082 --host 0.0.0.0' if @anycable
|
99
99
|
end
|
100
100
|
|
101
101
|
def app
|
data/lib/fly.io-rails/version.rb
CHANGED
@@ -108,7 +108,16 @@ RUN npm install
|
|
108
108
|
FROM flyio/litefs:pr-109 AS litefs
|
109
109
|
|
110
110
|
#######################################################################
|
111
|
-
<% end
|
111
|
+
<% end -%>
|
112
|
+
<% if @anycable -%>
|
113
|
+
|
114
|
+
# Build anycable
|
115
|
+
FROM golang:1.18 as go
|
116
|
+
RUN GOBIN=/usr/local/bin/ go install github.com/anycable/anycable-go/cmd/anycable-go@latest
|
117
|
+
|
118
|
+
#######################################################################
|
119
|
+
<% end -%>
|
120
|
+
|
112
121
|
# install deployment packages
|
113
122
|
|
114
123
|
FROM base
|
@@ -141,14 +150,11 @@ RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt \
|
|
141
150
|
${DEPLOY_PACKAGES} \
|
142
151
|
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
143
152
|
|
144
|
-
<% if @anycable -%>
|
145
|
-
# install anycable
|
146
|
-
RUN curl -L https://github.com/anycable/anycable-go/releases/download/v1.2.1/anycable-go-linux-amd64 -o /usr/local/bin/anycable-go && chmod 755 /usr/local/bin/anycable-go
|
147
|
-
|
148
|
-
<% end -%>
|
149
153
|
<% if @redis == :internal -%>
|
150
154
|
# configure redis
|
151
155
|
RUN sed -i 's/^daemonize yes/daemonize no/' /etc/redis/redis.conf &&\
|
156
|
+
sed -i 's/^bind/# bind/' /etc/redis/redis.conf &&\
|
157
|
+
sed -i 's/^protected-mode yes/protected-mode no/' /etc/redis/redis.conf &&\
|
152
158
|
sed -i 's/^logfile/# logfile/' /etc/redis/redis.conf
|
153
159
|
|
154
160
|
<% end -%>
|
@@ -161,6 +167,11 @@ COPY --from=gems /usr/local/bundle /usr/local/bundle
|
|
161
167
|
# copy installed node modules
|
162
168
|
COPY --from=node_modules /app/node_modules /app/node_modules
|
163
169
|
|
170
|
+
<% end -%>
|
171
|
+
<% if @anycable -%>
|
172
|
+
# copy anycable-go
|
173
|
+
COPY --from=go /usr/local/bin/anycable-go /usr/local/bin/anycable-go
|
174
|
+
|
164
175
|
<% end -%>
|
165
176
|
<% if @litefs -%>
|
166
177
|
# copy litefs binary
|
@@ -24,8 +24,7 @@ namespace :fly do
|
|
24
24
|
ENV['REDIS_URL'] = "redis://#{ENV['FLY_REGION']}-redis.local:6379/1"
|
25
25
|
<% end -%>
|
26
26
|
<% if @anycable -%>
|
27
|
-
ENV['
|
28
|
-
ENV['CABLE_URL'] = "#{ENV['FLY_REGION']}-anycable-go.local"
|
27
|
+
ENV['ANYCABLE_GO_RPC_HOST'] = "#{ENV['FLY_REGION']}-anycable-rpc.local:50051"
|
29
28
|
<% end -%>
|
30
29
|
end
|
31
30
|
|
@@ -54,7 +53,7 @@ namespace :fly do
|
|
54
53
|
<%- end -%>
|
55
54
|
Bundler.with_original_env do
|
56
55
|
<%- if @avahi -%>
|
57
|
-
|
56
|
+
Rake::Task['fly:env'].invoke
|
58
57
|
<%- end -%>
|
59
58
|
sh "foreman start --procfile=Procfile.fly --formation=#{formation}"
|
60
59
|
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.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fly-ruby
|