These are chat archives for reactioncommerce/reaction

10th
Jun 2017
hrath2015
@hrath2015
Jun 10 2017 06:17 UTC
@jshimko FROM reactioncommerce/base:latest is still good to put in Dockerfile in project directory.
I am trying to build on Google Cloud vm n1-standard-1 (1 vCPU, 3.75 GB memory) it is failing for memory allocation error.
did try --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2560"
wanted to confirm if tag needs to be changed to something else.
Lorenzo Campanis
@lcampanis
Jun 10 2017 06:49 UTC
@hrath2015 I wouldn't recommend Google Cloud as the best solution, try AWS or Digital Ocean. If however you would like to go ahead with it, what you probably need is to add more SWAP memory. Here's a gist for it https://gist.github.com/lcampanis/9c65dca997532ae8c7d549ee0159566c
hrath2015
@hrath2015
Jun 10 2017 06:54 UTC
thanks @lcampanis . tried adding swap already... did not work either. sorry forgot to mention.
Vigy
@vigyano
Jun 10 2017 08:24 UTC
how to overwrite favicon in reaction with custom icon?
bebob1
@bebob1
Jun 10 2017 08:35 UTC
hello there. I deployed reaction with MUP but I don't have the username and password of the admin user anymore. How do I reset it on the production instance where I can not use "reaction reset"?
Brent Hoover
@zenweasel
Jun 10 2017 08:48 UTC
@bebob1 you should probably be setting it with environment variables for a deployed instance
Burak Targaç
@btargac
Jun 10 2017 14:04 UTC
Hi, should I do anything special after updating a json file under i18n folder ?
And what should I do to add a missing currency?
Brent Hoover
@zenweasel
Jun 10 2017 14:09 UTC
You will proabbly need to do a reaction reset to get translations to load. They don’t load reactively
You can add currencies to the Shops.json file
Burak Targaç
@btargac
Jun 10 2017 14:23 UTC
thanks @zenweasel for the quick reply, btw why there are two currencies keys in shops.json file
bebob1
@bebob1
Jun 10 2017 15:08 UTC
@zenweasel Hi Brent. I am setting REACTION_USER and REACTION_AUTH with environment variables in the mup.js config. But it doesnt have any effect, because the login isnt working
hrath2015
@hrath2015
Jun 10 2017 15:10 UTC
@bebob1 what is the output of verifying deployment. Is it sucess?
bebob1
@bebob1
Jun 10 2017 16:34 UTC
yes and it's running quite well
hrath2015
@hrath2015
Jun 10 2017 16:36 UTC
do you have access to mongodb to see if user id is created or not.
bebob1
@bebob1
Jun 10 2017 16:37 UTC
I can log into the mongo db, which I havnt done before. But I could try. Where would I look there?
hrath2015
@hrath2015
Jun 10 2017 16:50 UTC
image.png
in users collection
are u specifying MONGO_URL in config
ereyes97
@ereyes97
Jun 10 2017 17:22 UTC
Hello
I am thinking of the possibility of adapting reaction commerce in a reservation system for hotel rooms.
I would like to know if you think it is possible to do. Someone already done something similar?
Have a nice day.
bebob1
@bebob1
Jun 10 2017 18:00 UTC
yes the MONGO URL is specified
may I ask what tool you use to administrate mongo? It looks like a phpmyadmin for mongo :)
i want it ! :)
hrath2015
@hrath2015
Jun 10 2017 18:08 UTC
it is robomongo
Joshua Austill
@jlaustill
Jun 10 2017 18:09 UTC
@bebob1 robomongo, which just combined with compass. It will be interesting to see what they come up with
bebob1
@bebob1
Jun 10 2017 18:11 UTC
thanmk you guys, Im installing it, let's see what it shows
hrath2015
@hrath2015
Jun 10 2017 18:12 UTC
check mup logs u will see the admin credentials printed on console
if you want config supplied then please go to mongodb remove all collections from db and then deploy again. it should work.
ereyes97
@ereyes97
Jun 10 2017 18:12 UTC
Which parameters should I use in Robomondo to connect to the server?
hrath2015
@hrath2015
Jun 10 2017 18:14 UTC
image.png
ereyes97
@ereyes97
Jun 10 2017 18:14 UTC
thanks
hrath2015
@hrath2015
Jun 10 2017 18:15 UTC
it is app port +1. if app is running on 3000 then 3001. It is for local dev.
bebob1
@bebob1
Jun 10 2017 18:21 UTC
where can I find the mup logs?
hrath2015
@hrath2015
Jun 10 2017 18:23 UTC
from mup git page mup logs [-f --tail=50]
bebob1
@bebob1
Jun 10 2017 18:23 UTC
btw I am looking at my database on the deploy server right now. But the password is hashed, is there a way to restore it?
oh yeah right, mup shows that line all the time stupid me ;)
hrath2015
@hrath2015
Jun 10 2017 18:25 UTC
are u able to see the product page/index page without admin login
bebob1
@bebob1
Jun 10 2017 18:25 UTC
yes
hrath2015
@hrath2015
Jun 10 2017 18:26 UTC
:thumbsup:
bebob1
@bebob1
Jun 10 2017 18:26 UTC
the log doesnt show any info on the environment variables I set the the mup.js
hrath2015
@hrath2015
Jun 10 2017 18:31 UTC
guide-installation-default-user.png
bebob1
@bebob1
Jun 10 2017 18:33 UTC
well that a long time ago so it doesnt how up anymore even not with something like mup logs -f --tail=500000
hrath2015
@hrath2015
Jun 10 2017 18:36 UTC
then reset your db and re deploy
bebob1
@bebob1
Jun 10 2017 18:37 UTC
ah ok I found "mup reconfig", let's see if it resets my DB on the deploy server
no luck, it doesnt reset or show the admin info
hrath2015
@hrath2015
Jun 10 2017 18:41 UTC
is it mlab?
bebob1
@bebob1
Jun 10 2017 18:43 UTC
sorry I don't know what mlap mwans
hrath2015
@hrath2015
Jun 10 2017 18:44 UTC
in mongo url which mongodb service are u using
bebob1
@bebob1
Jun 10 2017 18:45 UTC
I actually don't know, I call the mongo url with this: mongodb://reaction:reaction@localhost:27017/reaction
hrath2015
@hrath2015
Jun 10 2017 18:50 UTC
I think somebody did try the recovery by copying hash in other user ID or something like that. u can search the room how was that done
bebob1
@bebob1
Jun 10 2017 18:52 UTC
not sure what that means ;) But if just drop all tables in the db, will reaction set it up freshly?
hrath2015
@hrath2015
Jun 10 2017 19:00 UTC
yup
give it a try.
bebob1
@bebob1
Jun 10 2017 20:01 UTC
so that did the job. Although I can't login now: "Oops! Please validate your email first." But thats obviously a different story I have to look into now. Thanks so much hrath!
Curran
@curranabell
Jun 10 2017 21:01 UTC
Hi how would I go about adding product filters to the products page? I built out the react ui with rui components and now I need to make it function. Is there any documentation how to add filters and such?
Screen Shot 2017-06-10 at 11.01.36 AM.png