fix app.json ENV vars (#10)

* convert integer to string.

* cache npm modules in CircleCI.

* fix app.json.
This commit is contained in:
Justin Licata 2017-07-21 17:14:54 -05:00 committed by GitHub
parent 4991ef7314
commit 7f40632103
2 changed files with 22 additions and 2 deletions

@ -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

@ -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"
} }
} }
} }