This repository was archived by the owner on Feb 16, 2023. It is now read-only.
File tree 4 files changed +35
-2
lines changed
4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ruby '2.6.5'
5
5
6
6
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
7
gem 'rails' , '~> 6.0.1'
8
+ gem 'mimemagic' , github : 'mimemagicrb/mimemagic' , ref : 'd5ebc0cd846dcc68142622c76ad71d021768b7c2'
8
9
# Use postgresql as the database for Active Record
9
10
gem 'pg' , '>= 0.18' , '< 2.0'
10
11
# Use Puma as the app server
Original file line number Diff line number Diff line change
1
+ GIT
2
+ remote: https://github.com/mimemagicrb/mimemagic.git
3
+ revision: d5ebc0cd846dcc68142622c76ad71d021768b7c2
4
+ ref: d5ebc0cd846dcc68142622c76ad71d021768b7c2
5
+ specs:
6
+ mimemagic (0.3.3 )
7
+
1
8
GEM
2
9
remote: https://rubygems.org/
3
10
specs:
131
138
marcel (0.3.3 )
132
139
mimemagic (~> 0.3.2 )
133
140
method_source (0.9.2 )
134
- mimemagic (0.3.3 )
135
141
mini_mime (1.0.2 )
136
142
mini_portile2 (2.4.0 )
137
143
minitest (5.13.0 )
@@ -262,6 +268,7 @@ DEPENDENCIES
262
268
jbuilder (~> 2.7 )
263
269
jsonapi-resources
264
270
listen (>= 3.0.5 , < 3.2 )
271
+ mimemagic !
265
272
pg (>= 0.18 , < 2.0 )
266
273
puma (~> 4.1 )
267
274
rails (~> 6.0.1 )
Original file line number Diff line number Diff line change @@ -37,3 +37,28 @@ bundle exec rails s
37
37
bin/webpack-dev-server
38
38
yarn watch-typings
39
39
```
40
+
41
+ ### Deploy
42
+ * Note: Ensure that ` RAILS_ENV=production ` is set for all of the following commands.*
43
+ 1 . Install dependencies
44
+ ```
45
+ bundle install
46
+ yarn install
47
+ ```
48
+ 2 . Generate Rails credentials
49
+ ```
50
+ bundle exec rails credentials:edit
51
+ ```
52
+ 3 . Setup database
53
+ ```
54
+ bundle exec rails db:create
55
+ bundle exec rails db:migrate
56
+ ```
57
+ 4 . Precompile assets
58
+ ```
59
+ bundle exec rails assets:precompile
60
+ ```
61
+ 5 . Run application
62
+ ```
63
+ bundle exec rails s
64
+ ```
Original file line number Diff line number Diff line change 44
44
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
45
45
46
46
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
47
- # config.force_ssl = true
47
+ config . force_ssl = true
48
48
49
49
# Use the lowest log level to ensure availability of diagnostic information
50
50
# when problems arise.
You can’t perform that action at this time.
0 commit comments