Skip to content

Commit

Permalink
pm2 run with --no-daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Nov 25, 2018
1 parent c9375d2 commit c01128f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:10
LABEL maintainer="noogen <[email protected]>"
ENV NPM_CONFIG_LOGLEVEL=warn \
LAMBDA_FORM_VERSION=1.1.3
LAMBDA_FORM_VERSION=1.2.1
EXPOSE 5000

RUN apt-get update && apt-get upgrade -y \
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
ports:
- '5000:5000'
environment:
# NodeJS env
- PORT=5000
# AWS access credentials
- AWS_ACCESS_KEY_ID=XXXXXXXXXX
- AWS_SECRET_ACCESS_KEY=XXXXXXXXXX
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambda-form",
"version": "1.1.3",
"version": "1.2.1",
"description": "A form submission handler using Serverless and AWS Lambda",
"main": "handler.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"sls": "node_modules/.bin/serverless",
"service-info": "sls info",
"local": "node_modules/.bin/serverless offline --stage dev",
"prod": "pm2 start pm2.json"
"prod": "pm2 start pm2.json --no-daemon"
},
"author": "Tom Noogen",
"license": "MIT",
Expand Down

0 comments on commit c01128f

Please sign in to comment.