Steam Web API 通过 Node.js 在我的共享主机上
Steam Web API via Node.js on my shared hosting
基本上,我想做的是通过 Node.js 在我的共享主机上拥有 Steam 网站 API 运行,这样我就可以在我的网站上显示 Steam 用户个人资料信息.不幸的是,我在让它工作时遇到了很多麻烦。我一直在关注 this guide。
This 是我跟着得到NodeJS 运行.
我是这样设置的:
Node.js version - 9.11.2
Application mode - Production
Application root - /home/<name>/nodejs/steamapi-server
Application URL - <mysite.com>/steamapi-server
Application startup file - server.js
My server.js file(减去我的 API 键)。
已安装所有依赖项,脚本为运行。
但是,当我转到 /steamapi-server 时,我得到的只是:Cannot GET /steamapi-server/ 而我通常会看到 "Hello, World!"。
我事先在本地测试了这一切,它正在工作。
结果我需要将 app.get('/' 更改为 app.get('/steamapi-server'
现在可以使用了。
基本上,我想做的是通过 Node.js 在我的共享主机上拥有 Steam 网站 API 运行,这样我就可以在我的网站上显示 Steam 用户个人资料信息.不幸的是,我在让它工作时遇到了很多麻烦。我一直在关注 this guide。
This 是我跟着得到NodeJS 运行.
我是这样设置的:
Node.js version - 9.11.2
Application mode - Production
Application root - /home/<name>/nodejs/steamapi-server
Application URL - <mysite.com>/steamapi-server
Application startup file - server.js
My server.js file(减去我的 API 键)。
已安装所有依赖项,脚本为运行。 但是,当我转到 /steamapi-server 时,我得到的只是:Cannot GET /steamapi-server/ 而我通常会看到 "Hello, World!"。 我事先在本地测试了这一切,它正在工作。
结果我需要将 app.get('/' 更改为 app.get('/steamapi-server'
现在可以使用了。