verificationCode icon indicating copy to clipboard operation
verificationCode copied to clipboard

访问localhost:3000/index.html之后立即重定向

Open yuehenying opened this issue 8 years ago • 2 comments

你好,我在使用你的代码时发现phone.js的第一行是require('./config/alidayu'),应该改为require('../config/alidayu'); 但我最疑惑的是当我正常运行app.js之后,浏览器访问localhost:3000/index.html时页面显示Cannot GET /index.html,应该是被重定向了,请问这是什么问题?

yuehenying avatar Oct 26 '17 08:10 yuehenying

阿里已经将这个业务停掉了,转到了阿里云,所有的服务接口都变掉了,建议去阿里云看看短信服务的SDK 

页面重定向的问题,可以在起项目时使用renderFile方法将页面定位到index.html,具体的方法可以看一下仓库里有个我自己写的脚手架工具,在build文件夹内的build.js有类似的操作。 发自网易邮箱大师 在2017年10月26日 16:15,jquery 写道: 你好,我在使用你的代码时发现phone.js的第一行是require('./config/alidayu'),应该改为require('../config/alidayu'); 但我最疑惑的是当我正常运行app.js之后,浏览器访问localhost:3000/index.html时页面显示Cannot GET /index.html,应该是被重定向了,请问这是什么问题?

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/zhaoxuhui1122/verificationCode","title":"zhaoxuhui1122/verificationCode","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/zhaoxuhui1122/verificationCode"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"访问localhost:3000/index.html之后立即重定向 (#1)"}],"action":{"name":"View Issue","url":"https://github.com/zhaoxuhui1122/verificationCode/issues/1"}}}

zhaoxuhui1122 avatar Oct 26 '17 11:10 zhaoxuhui1122

        发自网易邮箱大师
        在2017年10月26日 19:01,[email protected] 写道: 
    
        

阿里已经将这个业务停掉了,转到了阿里云,所有的服务接口都变掉了,建议去阿里云看看短信服务的SDK 

页面重定向的问题,可以在起项目时使用renderFile方法将页面定位到index.html,具体的方法可以看一下仓库里有个我自己写的脚手架工具,在build文件夹内的build.js有类似的操作。 发自网易邮箱大师 在2017年10月26日 16:15,jquery 写道: 你好,我在使用你的代码时发现phone.js的第一行是require('./config/alidayu'),应该改为require('../config/alidayu'); 但我最疑惑的是当我正常运行app.js之后,浏览器访问localhost:3000/index.html时页面显示Cannot GET /index.html,应该是被重定向了,请问这是什么问题?

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/zhaoxuhui1122/verificationCode","title":"zhaoxuhui1122/verificationCode","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/zhaoxuhui1122/verificationCode"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"访问localhost:3000/index.html之后立即重定向 (#1)"}],"action":{"name":"View Issue","url":"https://github.com/zhaoxuhui1122/verificationCode/issues/1"}}}

zhaoxuhui1122 avatar Oct 26 '17 11:10 zhaoxuhui1122