[英]Using SetEnv in Apache : where and how can I do that?
I want to run locally an App I am developing. 我想在本地运行我正在开发的应用程序。 There are instructions about how to config that here : http://devcenter.heroku.com/articles/facebook#working_locally in 2).
这里有关于如何配置的说明: http : //devcenter.heroku.com/articles/facebook#working_locally in 2)。 I am using PHP, so I will use Apache.
我正在使用PHP,因此将使用Apache。 I had already runned a PHP project thanks to WampServer, but I do not know and do not understand how it works really.
感谢WampServer,我已经运行了一个PHP项目,但是我不知道也不知道它的工作原理。
Now I want to use SetEnv to set the env vars for my local app's VirtualHost, as described in the link above (for FB variables). 现在,我想使用SetEnv为本地应用程序的VirtualHost设置环境变量,如上面的链接所述(针对FB变量)。 But I do not know what I have to write :
但是我不知道该写些什么:
<VirtualHost *:80>
DocumentRoot /Users/adam/Sites/mycoolapp-dev
ServerName mycoolapp-dev.localhost
SetEnv FACEBOOK_APP_ID 964173273189
SetEnv FACEBOOK_SECRET dcd5d23d003d53cb2b68e01
</VirtualHost>
some file ? 一些文件?
Or use the setEnv instruction in cmd.exe, somewhere ? 还是在某处使用cmd.exe中的setEnv指令?
I have not found further explanations, and so am completely lost. 我没有找到进一步的解释,因此完全迷失了。
Thanks a lot for helping 非常感谢您的帮助
Assuming that your app file are located inside facebook-test-app folder, you can make the following changes and then your app will work on the local development environment. 假设您的应用程序文件位于facebook-test-app文件夹中,则可以进行以下更改,然后您的应用程序将在本地开发环境中运行。
DocumentRoot C:/server/www/test/facebook-test-app
ServerName facebook-test-app.localhost
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.