Guest User

Untitled

a guest
Nov 19th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. yarn run v1.3.2
  2. $ nodemon --legacy-watch --exec babel-node src/index.js
  3. /app/node_modules/.bin/nodemon:2
  4. 'use
  5. ^^^^^
  6. SyntaxError: Invalid or unexpected token
  7. at createScript (vm.js:80:10)
  8. at Object.runInThisContext (vm.js:139:10)
  9. at Module._compile (module.js:599:28)
  10. at Object.Module._extensions..js (module.js:646:10)
  11. at Module.load (module.js:554:32)
  12. at tryModuleLoad (module.js:497:12)
  13. at Function.Module._load (module.js:489:3)
  14. at Function.Module.runMain (module.js:676:10)
  15. at startup (bootstrap_node.js:187:16)
  16. at bootstrap_node.js:608:3
  17. error Command failed with exit code 1.
  18. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  19.  
  20. "dev": "nodemon --legacy-watch --exec babel-node src/index.js",
  21.  
  22. FROM node:8.9.1-alpine
  23.  
  24. WORKDIR /app
  25.  
  26. COPY . /app/
  27.  
  28. RUN cd /app && yarn install
  29.  
  30. ---
  31. apiVersion: apps/v1beta1
  32. kind: Deployment
  33. metadata:
  34. labels:
  35. app: nodeapp
  36. name: nodeapp
  37. spec:
  38. replicas: 3
  39. selector:
  40. matchLabels:
  41. app: nodeapp
  42. template:
  43. metadata:
  44. labels:
  45. app: nodeapp
  46. spec:
  47. containers:
  48. - name: nodeapp
  49. imagePullPolicy: Never
  50. image: app:latest
  51. command:
  52. - yarn
  53. args:
  54. - run
  55. - dev
  56. ports:
  57. - containerPort: 8080
  58. volumeMounts:
  59. - name: code
  60. mountPath: /app
  61. volumes:
  62. - name: code
  63. hostPath:
  64. path: /Users/adam/Workspaces/scratch/expresssite
  65. ---
  66. apiVersion: v1
  67. kind: Service
  68. metadata:
  69. name: nodeapp
  70. labels:
  71. app: nodeapp
  72. spec:
  73. selector:
  74. app: nodeapp
  75. ports:
  76. - name: nodeapp
  77. port: 8080
  78. nodePort: 30005
  79. type: NodePort
  80. ---
Add Comment
Please, Sign In to add comment