mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-03-01 02:58:31 +00:00
add newrelic monitoring for nodejs
This commit is contained in:
@@ -20,6 +20,9 @@ RUN /bin/bash -c "source ~/.nvm/nvm.sh \
|
||||
&& nvm use koodiklinikka.fi-api \
|
||||
&& npm install"
|
||||
|
||||
RUN cp node_modules/newrelic/newrelic.js .
|
||||
RUN NR_KEY=$(cat config.json |grep newrelic_key|cut -d'"' -f4) && sed -i "s/license key here/$NR_KEY/g" newrelic.js
|
||||
|
||||
CMD NODE_ENV=$NODE_ENV PORT=$PORT /bin/bash -c "source ~/.nvm/nvm.sh \
|
||||
&& nvm use koodiklinikka.fi-api \
|
||||
&& node index.js >> /var/log/koodiklinikka.fi-api.log 2>&1"
|
||||
|
||||
Reference in New Issue
Block a user