You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Facebook auth id is not used from local.env.js with built project. #513
Actualy I think that this is not question but bug.
I would expect that if I provide local.env.js file for bulid process, then builded app should be able to connect facebook, same like with "grunt serve".
I think that
process.env.FACEBOOK_ID
is not set with builded app. (as opposite to process.env.DOMAIN)
I see. I actually miss read your OP. local.env.js is used by Grunt to set environment variables for you. When not using grunt you'll need to set them when you run node server/app.js or require local.env.js at the top of app.js
Activity
remicastaing commentedon Sep 2, 2014
You have to fill local.env.js:
or have to set the environnemental variable
process.env.FACEBOOK_IDandprocess.env.FACEBOOK_SECRET.gintsgints commentedon Sep 3, 2014
For sure. I have filled local.env.js with correct values. (As I mentioned local started facebook auth works)
kingcody commentedon Sep 3, 2014
@gintsgints are you asking about:
&client_id=id?gintsgints commentedon Sep 3, 2014
yes.
kingcody commentedon Sep 3, 2014
Does
server/config/environment/index.jscontain:If so, thats where
config.facebook.clientIDgets set toprocess.env.FACEBOOK_ID. Then inserver/auth/facebook/passport.jsyou should see:Which is where passport is configured to use
config.facebook.clientIDas the clientID.Does this help with your question?
gintsgints commentedon Sep 3, 2014
Actualy I think that this is not question but bug.
I would expect that if I provide local.env.js file for bulid process, then builded app should be able to connect facebook, same like with "grunt serve".
I think that
is not set with builded app. (as opposite to process.env.DOMAIN)
gintsgints commentedon Sep 3, 2014
If I replace in ``dist/server/config/environment/index.js`:
'id' and 'secret' with real values. Then everything works.
kingcody commentedon Sep 3, 2014
I see. I actually miss read your OP.
local.env.jsis used by Grunt to set environment variables for you. When not using grunt you'll need to set them when you runnode server/app.jsor requirelocal.env.jsat the top of app.jsHope this helps.
kingcody commentedon Sep 3, 2014
Actually there are tons of ways to set environment variables, those are just a few that I mentioned.
gintsgints commentedon Sep 3, 2014
If setting enviroment variables is how it is supposed to work. Then question is answered.
Thanks.