質問編集履歴

2

情報修正

2020/06/23 10:03

投稿

kkmts
kkmts

スコア7

test CHANGED
File without changes
test CHANGED
@@ -166,7 +166,7 @@
166
166
 
167
167
  $ npm run build
168
168
 
169
- > edichi_for_student@1.0.0 build /builds/mates1/edichi/serverless_edichi_for_student
169
+ > hoge@1.0.0 start /builds/mates1/hoge/hoeghoge
170
170
 
171
171
  > nuxt build
172
172
 
@@ -174,7 +174,7 @@
174
174
 
175
175
  $ npm run start
176
176
 
177
- > edichi_for_student@1.0.0 start /builds/mates1/edichi/serverless_edichi_for_student
177
+ > hoge@1.0.0 start /builds/mates1/hoge/hoeghoge
178
178
 
179
179
  > nuxt start
180
180
 

1

package.jsonの内容を追記

2020/06/23 10:02

投稿

kkmts
kkmts

スコア7

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,121 @@
63
63
  ```
64
64
 
65
65
  というエラーが出てしまいました。
66
+
67
+
68
+
69
+ # 追記
70
+
71
+ `package.json` は下記になります。
72
+
73
+ 回答を頂いて、 `"stop": "nxut start --force-exit"` を追記しました。
74
+
75
+ ```package.json
76
+
77
+ {
78
+
79
+ // 中略
80
+
81
+ "scripts": {
82
+
83
+ "dev": "nuxt",
84
+
85
+ "build": "nuxt build",
86
+
87
+ "start": "nuxt start",
88
+
89
+ "clean": "rm -rf .nuxt ./dist",
90
+
91
+ "generate": "nuxt generate",
92
+
93
+ "stop": "nuxt start --force-exit",
94
+
95
+ "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
96
+
97
+ "lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore ."
98
+
99
+ }
100
+
101
+ }
102
+
103
+ ```
104
+
105
+ 上記追記してからymlも追記しました。
106
+
107
+ ```yml
108
+
109
+ image: node:12.16.1-alpine
110
+
111
+
112
+
113
+ stages:
114
+
115
+ - build
116
+
117
+ - stop
118
+
119
+
120
+
121
+ build:
122
+
123
+ stage: build
124
+
125
+ before_script:
126
+
127
+ - npm install
128
+
129
+ script:
130
+
131
+ - npm run build
132
+
133
+ - npm run start
134
+
135
+ - npm run stop
136
+
137
+ - echo "started"
138
+
139
+ stop:
140
+
141
+ stage: stop
142
+
143
+ script:
144
+
145
+ - echo "stop"
146
+
147
+ ```
148
+
149
+
150
+
151
+ gitlab上の実行画面は下記の感じで、
152
+
153
+ ```
154
+
155
+ // npm installなど
156
+
157
+ added 1391 packages from 1009 contributors and audited 30152 packages in 37.852s
158
+
159
+ 33 packages are looking for funding
160
+
161
+ run `npm fund` for details
162
+
163
+ found 229 vulnerabilities (225 low, 4 moderate)
164
+
165
+ run `npm audit fix` to fix them, or `npm audit` for details
166
+
167
+ $ npm run build
168
+
169
+ > edichi_for_student@1.0.0 build /builds/mates1/edichi/serverless_edichi_for_student
170
+
171
+ > nuxt build
172
+
173
+ [log] config/.env.local
174
+
175
+ $ npm run start
176
+
177
+ > edichi_for_student@1.0.0 start /builds/mates1/edichi/serverless_edichi_for_student
178
+
179
+ > nuxt start
180
+
181
+ ```
182
+
183
+ ここまで実行してこの状態で以降止まってしまいます。