fix app.json ENV vars (#10)
* convert integer to string. * cache npm modules in CircleCI. * fix app.json.
This commit is contained in:
parent
4991ef7314
commit
7f40632103
@ -28,6 +28,9 @@ jobs:
|
|||||||
- gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
- gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
||||||
- gem-cache-{{ .Branch }}
|
- gem-cache-{{ .Branch }}
|
||||||
- gem-cache
|
- gem-cache
|
||||||
|
- npm-deps-{{ .Branch }}-{{ checksum "package.json" }}
|
||||||
|
- npm-deps-{{ checksum "package.json" }}
|
||||||
|
- npm-deps
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: install dependencies
|
name: install dependencies
|
||||||
@ -39,15 +42,32 @@ jobs:
|
|||||||
key: gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
key: gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: gem-cache-{{ .Branch }}
|
key: gem-cache-{{ .Branch }}
|
||||||
paths:
|
paths:
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: gem-cache
|
key: gem-cache
|
||||||
paths:
|
paths:
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: npm-deps-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
||||||
|
paths:
|
||||||
|
- .node_modules
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: npm-deps-{{ checksum "package.json" }}
|
||||||
|
paths:
|
||||||
|
- .node_modules
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: npm-deps
|
||||||
|
paths:
|
||||||
|
- .node_modules
|
||||||
|
|
||||||
# Database setup
|
# Database setup
|
||||||
- run: bundle exec rails db:create
|
- run: bundle exec rails db:create
|
||||||
- run: bundle exec rails db:schema:load
|
- run: bundle exec rails db:schema:load
|
||||||
|
4
app.json
4
app.json
@ -12,10 +12,10 @@
|
|||||||
"value": "3000"
|
"value": "3000"
|
||||||
},
|
},
|
||||||
"RAILS_MAX_THREADS": {
|
"RAILS_MAX_THREADS": {
|
||||||
"value": 5
|
"value": "5"
|
||||||
},
|
},
|
||||||
"WEB_CONCURRENCY": {
|
"WEB_CONCURRENCY": {
|
||||||
"value": 2
|
"value": "2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user