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

时间:2015-02-12 12:55:47

标签: php git callback openshift

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

在localhost上,回调URL完全正常,应用程序可以根据需要运行,但是当尝试指定相同的URL但在OpenShift上它返回404时。

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

localhost上的回调网址:

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

OpenShift上的回调网址:

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

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

1 个答案:

答案 0 :(得分:1)

您的回调网址应为http://twittersearch-jbon0041.rhcloud.com/twitteroauth-master/callback.php

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