slco-2016 / clientcomm

A communications platform for case managers in the Criminal Justice System.
https://clientcomm.org/
Other
10 stars 3 forks source link

Add "baseUrl" config option, DNS, nginx #355

Closed tdooner closed 7 years ago

tdooner commented 7 years ago

Another day's work, and finally the end is in sight.

baseurl option

This actually touches the clientcomm code so it's probably worth being careful to deploy carefully -- there is a new config value "baseUrl" that must be specified in each server's credentials.js file. A backwards-compatible value is the default if this value is not specified.

newrelic

All we need to specify is the intended newrelic app name and the newrelic API key. The app will be created when data is being sent the first time. This branch doesn't yet change newrelic.js to use a configurable newrelic app name, but it does put the config values in the proper place for that to be easily done.

nginx

This is the minimal work necessary to get nginx working. No TLS yet, that's somewhat unknown how we will fit that in here.

DNS

This adds some route53 provisioning logic to terraform. This can all be determined from the value of the baseUrl option, though it requires some pretty gnarly string manipulation.

initialization script

I added a script that is kind of like the seed script, but for the purpose of initializing a new installation with some actual objects. Run it like:

./devTools/initializeDeploy.js --multnomah
codecov-io commented 7 years ago

Codecov Report

Merging #355 into master will decrease coverage by -0.03%. The diff coverage is 66.66%.

@@            Coverage Diff            @@
##           master    #355      +/-   ##
=========================================
- Coverage   63.23%   63.2%   -0.03%     
=========================================
  Files         109     109              
  Lines        4175    4180       +5     
  Branches      456     457       +1     
=========================================
+ Hits         2640    2642       +2     
- Misses       1535    1538       +3
Impacted Files Coverage Δ
deploy/chef/cookbook/files/default/credentials.js 80% <100%> (ø) :white_check_mark:
app/models/public.js 95.45% <60%> (-4.55%) :x:
app/lib/em-notify.js 60.37% <ø> (-1.89%) :x:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b268dce...ed2794a. Read the comment docs.

tdooner commented 7 years ago

Okay, I took the username out of that script. Gonna merge now.