These are chat archives for reactioncommerce/reaction

21st
Jun 2016
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 06:09
@jngdal1 Hi. did u find solution of mogodb issue. connect to mongourol provided in setting.json?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 09:48
Hi
anyone tried to configure FB in reaction commerse?
I just set the key and API no and it is working fine on local
but on server it is not completing. Showing waiting for <url>
url is my website url
Valery Orloff
@valorloff
Jun 21 2016 10:38
Fire Base?
Brent Hoover
@zenweasel
Jun 21 2016 10:39
He means Facebook
Jeremy Shimko
@jshimko
Jun 21 2016 10:39
Do you have your ROOT_URL env var set correctly?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:39
yes
it is working fine for google login at server
Jeremy Shimko
@jshimko
Jun 21 2016 10:41
hmm. not sure then. I haven’t used that package for about 2 years. I just remembered the ROOT_URL thing causing a similar problem.
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:53
ok . i am trying to solve this
there is one more error i can see in my browser console
Error during WebSocket handshake: Unexpected response code: 400
it doesn't impact any of the functionality
Jeremy Shimko
@jshimko
Jun 21 2016 10:53
Firefox?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:54
chrome
i think it is making application slow to load
Jeremy Shimko
@jshimko
Jun 21 2016 10:54
That’s on the production site?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:54
yes
only on production
not on local
Jeremy Shimko
@jshimko
Jun 21 2016 10:54
any proxy? Nginx, etc?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:54
AWS server
Jeremy Shimko
@jshimko
Jun 21 2016 10:55
direct connection to the app though?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:55
not sure about proxy,nginx..i need to check
yes
Jeremy Shimko
@jshimko
Jun 21 2016 10:55
How did you deploy?
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:55
i just cloned it on server directly
and then ./reaction -p 7070
Jeremy Shimko
@jshimko
Jun 21 2016 10:56
oh, that’s not a production build. You’re running it in development mode on a remote server.
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:56
then how can i make prodcution build
But the first is the official recommendation
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 10:57
will that solve this issue?
Jeremy Shimko
@jshimko
Jun 21 2016 10:59
I have no idea, but I do know you definitely don’t want a deployed site running in development mode. It’ll be serving about 50 js files instead of one concatenated/optimized production build file. Which means every visitor has to download 50+ files.
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 11:00
ok thanks
i'll try
Valery Orloff
@valorloff
Jun 21 2016 11:20
experimenting with customization: after creating <template name="myCustomLayout in core.html console says:
templating.js:55 Uncaught Error: There are multiple templates named 'myCustomLayout'. Each template needs a unique name
ignore it?
i sweat it's single name)
Himanshu Aggarwal
@haggarwal90
Jun 21 2016 11:24
there will be one template in ur code which is having same name
two templates cant have same name

Valery Orloff
@valorloff
Jun 21 2016 11:27
my test package have 5 files, I could't lose a duplicate )
Jeremy Shimko
@jshimko
Jun 21 2016 11:28
But somehow you have. ;)
Do a find for myCustomLayout across the project.
Valery Orloff
@valorloff
Jun 21 2016 11:29
change name to myTestLayout :
templating.js:55 Uncaught Error: There are multiple templates named 'myTestLayout'. Each template needs a unique name
through Atom project find - in reaction folder
Valery Orloff
@valorloff
Jun 21 2016 11:56
double file declaration in package.js - which is why this is happens)
Valery Orloff
@valorloff
Jun 21 2016 13:15

console says:
layout.js:64 Uncaught TypeError: Cannot read property 'structure' of undefined

whatever reason this may happen?

Have you customized something?
Valery Orloff
@valorloff
Jun 21 2016 13:22
trying customize layout
step by customizing guide)
Jeremy Shimko
@jshimko
Jun 21 2016 13:54
I’d be happy to look at your code if you publish something on Github.
Valery Orloff
@valorloff
Jun 21 2016 14:19
just a minute
structure in place
Owen Hoskins
@owenhoskins
Jun 21 2016 18:51
Hello all. Short question, I am considering how to remove the "/tag/" from my paths. Simply removing it in the product register.js doesn't seem right. Looking for the logic governing this, any ideas? thxs.