File tree 8 files changed +46
-7
lines changed
8 files changed +46
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
3
3
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
4
4
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
5
5
apt-get update && \
6
- apt-get install -qq -y build-essential nodejs yarn \
6
+ apt-get install -qq -y build-essential nodejs yarn vim \
7
7
libpq-dev postgresql-client
8
8
RUN mkdir /myapp
9
9
RUN mkdir /storage
Original file line number Diff line number Diff line change @@ -71,4 +71,6 @@ gem 'logstash-logger'
71
71
gem 'redis'
72
72
gem 'redis-namespace'
73
73
gem 'redis-rails'
74
- gem 'redis-rack-cache'
74
+ gem 'redis-rack-cache'
75
+ gem 'cloudinary' , require : false
76
+ gem 'activestorage-cloudinary-service'
Original file line number Diff line number Diff line change 55
55
activejob (= 6.0.2.1 )
56
56
activerecord (= 6.0.2.1 )
57
57
marcel (~> 0.3.1 )
58
+ activestorage-cloudinary-service (0.2.3 )
58
59
activesupport (6.0.2.1 )
59
60
concurrent-ruby (~> 1.0 , >= 1.0.2 )
60
61
i18n (>= 0.7 , < 2 )
63
64
zeitwerk (~> 2.2 )
64
65
addressable (2.7.0 )
65
66
public_suffix (>= 2.0.2 , < 5.0 )
67
+ aws_cf_signer (0.1.3 )
66
68
bcrypt (3.1.13 )
67
69
bootsnap (1.4.5 )
68
70
msgpack (~> 1.0 )
69
71
builder (3.2.4 )
70
72
byebug (11.0.1 )
71
73
case_transform (0.2 )
72
74
activesupport
75
+ cloudinary (1.13.2 )
76
+ aws_cf_signer
77
+ rest-client
73
78
concurrent-ruby (1.1.5 )
74
79
crass (1.0.5 )
75
80
database_cleaner (1.7.0 )
76
81
diff-lcs (1.3 )
77
82
docker-postgres-rails (0.0.1 )
83
+ domain_name (0.5.20190701 )
84
+ unf (>= 0.0.5 , < 1.0.0 )
78
85
erubi (1.9.0 )
79
86
factory_bot (5.1.1 )
80
87
activesupport (>= 4.2.0 )
86
93
ffi (1.11.3 )
87
94
globalid (0.4.2 )
88
95
activesupport (>= 4.2.0 )
96
+ http-accept (1.7.0 )
97
+ http-cookie (1.0.3 )
98
+ domain_name (~> 0.5 )
89
99
i18n (1.7.0 )
90
100
concurrent-ruby (~> 1.0 )
91
101
json-schema (2.8.1 )
@@ -125,11 +135,15 @@ GEM
125
135
marcel (0.3.3 )
126
136
mimemagic (~> 0.3.2 )
127
137
method_source (0.9.2 )
138
+ mime-types (3.3.1 )
139
+ mime-types-data (~> 3.2015 )
140
+ mime-types-data (3.2019.1009 )
128
141
mimemagic (0.3.3 )
129
142
mini_mime (1.0.2 )
130
143
mini_portile2 (2.4.0 )
131
144
minitest (5.13.0 )
132
145
msgpack (1.3.1 )
146
+ netrc (0.11.0 )
133
147
nio4r (2.5.2 )
134
148
nokogiri (1.10.8 )
135
149
mini_portile2 (~> 2.4.0 )
196
210
redis (>= 4 , < 5 )
197
211
request_store (1.5.0 )
198
212
rack (>= 1.4 )
213
+ rest-client (2.1.0 )
214
+ http-accept (>= 1.7.0 , < 2.0 )
215
+ http-cookie (>= 1.0.2 , < 2.0 )
216
+ mime-types (>= 1.16 , < 4.0 )
217
+ netrc (~> 0.8 )
199
218
rspec-core (3.9.1 )
200
219
rspec-support (~> 3.9.1 )
201
220
rspec-expectations (3.9.0 )
238
257
thread_safe (0.3.6 )
239
258
tzinfo (1.2.6 )
240
259
thread_safe (~> 0.1 )
260
+ unf (0.1.4 )
261
+ unf_ext
262
+ unf_ext (0.0.7.7 )
241
263
websocket-driver (0.7.1 )
242
264
websocket-extensions (>= 0.1.0 )
243
265
websocket-extensions (0.1.4 )
@@ -248,9 +270,11 @@ PLATFORMS
248
270
249
271
DEPENDENCIES
250
272
active_model_serializers
273
+ activestorage-cloudinary-service
251
274
bcrypt (~> 3.1.7 )
252
275
bootsnap (>= 1.4.2 )
253
276
byebug
277
+ cloudinary
254
278
database_cleaner
255
279
docker-postgres-rails (~> 0.0.1 )
256
280
factory_bot_rails
@@ -281,4 +305,4 @@ RUBY VERSION
281
305
ruby 2.6.0p0
282
306
283
307
BUNDLED WITH
284
- 2.1.0
308
+ 2.1.2
Original file line number Diff line number Diff line change 1
- zWcK+1qX81ZtzzpDKZw7TKAv9O/kNKpZIS3rji5P+UyMxQkCfeqPJ2hnKsP4OYfXgZbOSsfny6WFhZlTTuAqrmkMvXNGdZuBPSTYc6hCQa9xpbs+Hz0GdEPjjG06lpzqv+UdhS7kwRS1+VOYhfiCSuJ4Jrluh1WdT9I74A/6rW6XZN0N6JEAZiJHyBZMNhFJ1J7+eDqRkmyUPPiDrIfNsJsi9HwkNNI52j9tpPDCjmkue9kb5cJ8UqsNclqGv6WZ1KhnVYO7vpIJUv0Yv2z74qkrCToTS1ZUio1/aWCf9REUK03oH1j362Hfr/l9iYYXo55AZeRshXFWiMR84vhFyfZ+ohvPupJ5k10CVhAfTglGdA9E5fXyTryBBxP2qhE5afOgzxIwL2mYvm0wbMj7PEDkmJCZXmXcfzFV--MMMAwCYTWSiiHMM3--zkH8yr6pn866+OrwtWf1PQ ==
1
+ WgYAI39Cuc42mFExYyxsc11a3+FqQAdSgugm4mlFPqp4RqNR3oNSx34g0H8pzMB5y12Hh81ksp31ZpKrSIm9uF8vLzBqh9dVooAIitJxrWFxr71zyad5Cp598pLxFYy2fX9iVDB4kmFw1a7ykvS+7w2o3dIEu50MB3ErUN3Nsd8Yq1SnbtvDzOCck1/vzIYEqGwTRui6/Qs4DRHGLllVEc6AXBq7xDU3CL6Cldw5Ju8mg0B61ZMlybwCu/UaChQdKrXIZkhkWvG5l5dlvxcd+NeYlaoJC0VuSpBVp+1jBlhYHoKHiTWeQEWzpvAUS7CL7leDBLOvgbZYR+PiKe9SAxrYur+EGeZbbnTHE3+v4GhRkK/vEFFEofye9AM8LMpSkBDH3JGdJIs1a7y0G+sRz7pX/BxFDqqlyycJ11sO3KjWl3A9E29SLEsHhjnwOz7jZT9ZxhPi/Y3M15wdHrhdoqm1x044/ugMt+lrPZs8szbPQiIFlVkqdQaJ/W3vX+yn9IXIa03wmeTGP1dkI5hoE+mUSVdAfWOuK+g7yIL197tPZc0Vup1l6NMyIwTJtrm5dyDXlZ1S0gPA--Lz5wiUakqNCTIPOU--qTRGR36SE7PM/xC3HcY2fA ==
Original file line number Diff line number Diff line change 26
26
end
27
27
28
28
# Store uploaded files on the local file system (see config/storage.yml for options).
29
- config . active_storage . service = :local
29
+ config . active_storage . service = :cloudinary
30
30
31
31
# Don't care if the mailer can't send.
32
32
# config.action_mailer.raise_delivery_errors = false
Original file line number Diff line number Diff line change 29
29
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
30
30
31
31
# Store uploaded files on the local file system (see config/storage.yml for options).
32
- config . active_storage . service = :local
32
+ config . active_storage . service = :cloudinary
33
33
34
34
# Mount Action Cable outside main process or domain.
35
35
# config.action_cable.mount_path = nil
Original file line number Diff line number Diff line change 31
31
config . action_controller . allow_forgery_protection = false
32
32
33
33
# Store uploaded files on the local file system in a temporary directory.
34
- config . active_storage . service = :test
34
+ config . active_storage . service = :cloudinary
35
35
36
36
# config.action_mailer.perform_caching = false
37
37
Original file line number Diff line number Diff line change 6
6
service : Disk
7
7
root : /storage
8
8
9
+ # https://github.com/0sc/activestorage-cloudinary-service
10
+ # cloudinary:
11
+ # service: Cloudinary
12
+ # cloud_name: <%= ENV['CLOUDINARY_CLOUD_NAME'] %>
13
+ # api_key: <%= ENV['CLOUDINARY_API_KEY'] %>
14
+ # api_secret: <%= ENV['CLOUDINARY_API_SECRET'] %>
15
+
16
+ cloudinary :
17
+ service : Cloudinary
18
+ cloud_name : <%= Rails.application.credentials.dig(:cloudinary, :cloud_name) %>
19
+ api_key : <%= Rails.application.credentials.dig(:cloudinary, :api_key) %>
20
+ api_secret : <%= Rails.application.credentials.dig(:cloudinary, :api_secret) %>
21
+
9
22
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
23
# amazon:
11
24
# service: S3
You can’t perform that action at this time.
0 commit comments