Skip to content

Commit 0c7b176

Browse files
Add initial .circleci config + fix 'start:prod' failing
1 parent 12d1c8c commit 0c7b176

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:lts
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/mstacm.org/apps/web
18+
19+
steps:
20+
- checkout:
21+
path: ~/mstacm.org
22+
23+
# Download and cache dependencies
24+
- restore_cache:
25+
keys:
26+
- v1-dependencies-{{ checksum "yarn.lock" }}
27+
# fallback to using the latest cache if no exact match is found
28+
- v1-dependencies-
29+
30+
- run: yarn install
31+
32+
- save_cache:
33+
paths:
34+
- node_modules
35+
key: v1-dependencies-{{ checksum "yarn.lock" }}
36+
37+
# run tests!
38+
- run: yarn test

api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /server
44

55
COPY . /server
66
ADD package.json /server/package.json
7-
RUN yarn install
7+
RUN yarn
88

99
EXPOSE 4000
1010
RUN yarn build

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"scripts": {
5555
"start:dev": "NODE_ENV='development' nodemon",
56-
"start:prod": "NODE_ENV='production' node build/src/index.js",
56+
"start:prod": "NODE_ENV='production' node build/src/main.js",
5757
"build": "tsc -p tsconfig.release.json",
5858
"build:watch": "tsc -w -p tsconfig.release.json",
5959
"lint": "tslint -t stylish --project \"tsconfig.json\"",

0 commit comments

Comments
 (0)