小编dav*_*vis的帖子

在App Engine标准构建失败上部署go1.11:您的应用不在GOPATH上

我尝试将Go应用程序部署到App Engine。我有以下构建错误:

Starting Step #1 - "builder"
Step #1 - "builder": Pulling image: gcr.io/gae-runtimes/go111_app_builder:go111_1_11_2_20181111_RC00
Step #1 - "builder": go111_1_11_2_20181111_RC00: Pulling from gae-runtimes/go111_app_builder
Step #1 - "builder": Digest: sha256:51fb36bfa16e7013356867c3a3972986084df93e56258fc258579a5799f0436e
Step #1 - "builder": Status: Downloaded newer image for gcr.io/gae-runtimes/go111_app_builder:go111_1_11_2_20181111_RC00
Step #1 - "builder": 2018/11/24 18:13:29 Your app is not on your GOPATH, this build may fail.
Step #1 - "builder": 2018/11/24 18:13:29 Building from Go source in /tmp/staging477638319/srv, with main package at ./...
Step #1 - "builder": 2018/11/24 18:13:29 Building /tmp/staging477638319/srv, …
Run Code Online (Sandbox Code Playgroud)

google-app-engine go google-app-engine-go

6
推荐指数
1
解决办法
1377
查看次数

将Next.js应用程序部署到App Engine Standard [Nodejs]并得到500错误

我使用nodejs8运行时部署到app引擎并获得了500.我正在部署next.js应用程序,并在查看StackDriver后得到.看来.next可能会被忽略.错误如下:

throw new Error("Could not find a valid build in the '".concat(this.distDir, "' directory! Try building your app with 'next build' before starting the server."));

Error: Could not find a valid build in the '/srv/build' directory! Try building your app with 'next build' before starting the server. at Server.readBuildId (/srv/node_modules/next/dist/server/next-server.js:753:15) at new Server (/srv/node_modules/next/dist/server/next-server.js:80:25) at module.exports (/srv/node_modules/next/dist/server/next.js:6:10) at Object.<anonymous> (/srv/server.js:10:13) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Function.Module.runMain (module.js:694:10)
Run Code Online (Sandbox Code Playgroud)

我的package.json文件如下所示:

   { …
Run Code Online (Sandbox Code Playgroud)

google-app-engine google-appengine-node

5
推荐指数
1
解决办法
3458
查看次数