Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yarn run v1.3.2
- $ nodemon --legacy-watch --exec babel-node src/index.js
- /app/node_modules/.bin/nodemon:2
- 'use
- ^^^^^
- SyntaxError: Invalid or unexpected token
- at createScript (vm.js:80:10)
- at Object.runInThisContext (vm.js:139:10)
- at Module._compile (module.js:599:28)
- at Object.Module._extensions..js (module.js:646:10)
- at Module.load (module.js:554:32)
- at tryModuleLoad (module.js:497:12)
- at Function.Module._load (module.js:489:3)
- at Function.Module.runMain (module.js:676:10)
- at startup (bootstrap_node.js:187:16)
- at bootstrap_node.js:608:3
- error Command failed with exit code 1.
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- "dev": "nodemon --legacy-watch --exec babel-node src/index.js",
- FROM node:8.9.1-alpine
- WORKDIR /app
- COPY . /app/
- RUN cd /app && yarn install
- ---
- apiVersion: apps/v1beta1
- kind: Deployment
- metadata:
- labels:
- app: nodeapp
- name: nodeapp
- spec:
- replicas: 3
- selector:
- matchLabels:
- app: nodeapp
- template:
- metadata:
- labels:
- app: nodeapp
- spec:
- containers:
- - name: nodeapp
- imagePullPolicy: Never
- image: app:latest
- command:
- - yarn
- args:
- - run
- - dev
- ports:
- - containerPort: 8080
- volumeMounts:
- - name: code
- mountPath: /app
- volumes:
- - name: code
- hostPath:
- path: /Users/adam/Workspaces/scratch/expresssite
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: nodeapp
- labels:
- app: nodeapp
- spec:
- selector:
- app: nodeapp
- ports:
- - name: nodeapp
- port: 8080
- nodePort: 30005
- type: NodePort
- ---
Add Comment
Please, Sign In to add comment