如何在OpenShift repo中指定源代码文件


How do you specify source code files in OpenShift repo?

我正在尝试引用OpenShift应用程序中的回调URL。回调URL指的是一个脚本,该脚本使用Twitter API的正确OAuth访问令牌将用户带回应用程序。

在localhost上,回调URL工作得很好,应用程序也可以根据需要工作,但当尝试指定相同的URL时,但在OpenShift上,它返回404。

这是我的网站http://twittersearch-jbon0041.rhcloud.com/

本地主机上的回调URL:

http://localhost/TwitterSearch/twitteroauth-master/callback.php

OpenShift上的回调URL:

http://twittersearch-jbon0041.rhcloud.com/54d8efc04382ecb1c900011c/app-root/runtime/repo/twitteroauth-master/callback.php

因此,我认为这可能是因为我没有正确指定URL,并且OpenShift服务器上的存储库路径也不正确。我试着四处寻找在服务器上调用文件的正确方法,但没有成功。我感谢你的帮助!

您的回调url应该是http://twittersearch-jbon0041.rhcloud.com/twitteroauth-master/callback.php

这是该文件的正确路径,但您的应用程序url似乎已不存在。