Reputation: 305
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). I am using PHP, so I will use Apache. I had already runned a PHP project thanks to WampServer, but I do not know and do not understand how it works really.
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). 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 ?
I have not found further explanations, and so am completely lost.
Thanks a lot for helping
Upvotes: 2
Views: 5928
Reputation: 99
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.
DocumentRoot C:/server/www/test/facebook-test-app
ServerName facebook-test-app.localhost
Upvotes: 1