Guest User

Untitled

a guest
Jan 9th, 2019
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  2.  
  3. view_1 | <--- JS stacktrace --->
  4. view_1 |
  5. view_1 | ==== JS stack trace =========================================
  6. view_1 |
  7. view_1 | 0: ExitFrame [pc: 0x26fd9624fb5d]
  8. view_1 | Security context: 0x140a9a59d921 <JSObject>
  9. view_1 | 1: on [0x1c685bd61259] [_stream_readable.js:~825] [pc=0x26fd96bd1601](this=0x27476ca40f19 <Socket map = 0x2513dd2aaca1>,0x1c685bd160d9 <String[5]: close>,0x27476ca41619 <JSBoundFunction (BoundTargetFunction 0x118981190661)>)
  10. view_1 | 2: connectionListenerInternal(aka connectionListenerInternal) [0x118981190561] [_http_server.js:~325] [pc=0x26fd9706ea91](this=...
  11. view_1 |
  12. view_1 | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  13.  
  14. view_1 | <--- JS stacktrace --->
  15. view_1 |
  16. view_1 | ==== JS stack trace =========================================
  17. view_1 |
  18. view_1 | 0: ExitFrame [pc: 0x3595a694fb5d]
  19. view_1 | Security context: 0x016ed8d9d921 <JSObject>
  20. view_1 | 1: parse(aka parse) [0x34dc366765a9] [/app/node_modules/cookie/index.js:~49] [pc=0x3595a77ee3a0](this=0x297ef7d825b1 <undefined>,0x15d707f39c31 <String[265]: auth._token.local=Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNTQ3MDczMjQyLCJleHAiOjE1NDcwNzY4NDIsImp0aSI6ImUwMWRlNjFkLTRkYzItNDRlMi1iZDY1LWQwYmRmZTcwNGNhZS...
  21. view_1 |
  22. view_1 | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  23.  
  24. view_1 | <--- JS stacktrace --->
  25. view_1 |
  26. view_1 | ==== JS stack trace =========================================
  27. view_1 |
  28. view_1 | 0: ExitFrame [pc: 0x2bda0b2cfb5d]
  29. view_1 | Security context: 0x1e6ec149d921 <JSObject>
  30. view_1 | 1: setContext(aka setContext) [0x3ef9c763dc89] [server-bundle.js:~2584] [pc=0x2bda0bbaa2d1](this=0x0a10aa8025b1 <undefined>,0x28d2a207a4c1 <Object map = 0x10d1f0bf3091>,0x28d2a207a5b1 <Object map = 0x10d1f0bf2cd1>)
  31. view_1 | 2: createApp(aka createApp) [0x27c44ed85199] [server-bundle.js:~1745] [pc=0x2bda0bb9d782](this=0x0a10aa8025b1 <undefined>,0x2bee19762ce9 ...
  32. view_1 |
  33. view_1 | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  34.  
  35. upstream view {
  36. server view:3000;
  37. }
  38.  
  39. upstream api {
  40. server api:8080;
  41. }
  42.  
  43. server {
  44. listen 80;
  45.  
  46. location / {
  47. proxy_pass http://view;
  48. }
  49.  
  50. # FOR DEVELOPMENT ONLY
  51. location /sockjs-node {
  52. proxy_pass http://view;
  53. proxy_http_version 1.1;
  54. proxy_set_header Upgrade $http_upgrade;
  55. proxy_set_header Connection "Upgrade";
  56. }
  57.  
  58. location /api {
  59. rewrite /api/(.*) /$1 break;
  60. proxy_pass http://api;
  61. }
  62. }
  63.  
  64. axios: {
  65. proxy: true,
  66. prefix: "/api"
  67. },
  68. auth: {
  69. strategies: {
  70. local: {
  71. endpoints: {
  72. login: { url: '/auth/users/sign_in' },
  73. logout: { url: '/auth/users/sign_out', method: 'delete' },
  74. user: { url: '/auth/users/current' }
  75. }
  76. }
  77. }
  78. },
  79.  
  80. <template>
  81. <v-layout>
  82. <v-flex>
  83. <v-card v-if="$auth.loggedIn">
  84. <v-alert type="error" :value="error">{{error}}</v-alert>
  85. <v-card-text>
  86. Logged in as {{$auth.user.email}}
  87. </v-card-text>
  88. <v-card-actions>
  89. <v-btn @click="logout">Log out</v-btn>
  90. </v-card-actions>
  91. </v-card>
  92. <v-card v-else>
  93. <v-alert type="error" :value="error">{{error}}</v-alert>
  94. <v-card-text>
  95. <v-form>
  96. <v-text-field v-model="email" label="Email" />
  97. <v-text-field v-model="password" label="Password" type="password" />
  98. </v-form>
  99. <v-card-actions>
  100. <v-btn @click="login">Log in</v-btn>
  101. </v-card-actions>
  102. </v-card-text>
  103. </v-card>
  104. </v-flex>
  105. </v-layout>
  106. </template>
  107.  
  108. <script>
  109. export default {
  110. data () {
  111. return {
  112. email: '',
  113. password: '',
  114. error: null
  115. }
  116. },
  117. methods: {
  118. login () {
  119. this.$auth.login({
  120. data: {
  121. user: {
  122. email: this.email,
  123. password: this.password
  124. }
  125. }
  126. }).catch(e => {this.error = e + ''})
  127. },
  128. logout () {
  129. this.$auth.logout().catch(e => {this.error = e + ''})
  130. }
  131. }
  132. }
  133.  
  134. </script>
  135.  
  136. version: '3'
  137. services:
  138. db:
  139. image: postgres
  140. volumes:
  141. - ./.tmp/db:/var/lib/postgresql/data
  142. ports:
  143. - "5432"
  144. proxy:
  145. build: proxy
  146. restart: always
  147. ports:
  148. - '5000:80'
  149. api:
  150. build: api
  151. environment:
  152. - JWT_SECRET=${JWT_SECRET}
  153. volumes:
  154. - ./api:/app
  155. depends_on:
  156. - db
  157. view:
  158. build: view
  159. volumes:
  160. - /app/node_modules
  161. - ./view:/app
  162.  
  163. git clone https://github.com/JoshHadik/stack_nuxt_authentication_question.git
  164.  
  165. cd stack_nuxt_authentication_question/
  166.  
  167. $ docker-compose up --build
  168.  
  169. $ docker-compose run api rails db:create db:migrate db:seed
  170.  
  171. $ git clone -b no-proxy https://github.com/JoshHadik/stack_nuxt_authentication_question.git
  172.  
  173. $ cd stack_nuxt_authentication_question/
  174.  
  175. $ docker-compose up --build
  176.  
  177. $ docker-compose run api rails db:create db:migrate db:seed
Add Comment
Please, Sign In to add comment