These are chat archives for reactioncommerce/reaction

14th
Feb 2018
Harshal Yeole
@harshalyeole-tudip
Feb 14 2018 10:18

Hey Guys,

Do we have server side method for

create anonymous users

/client/modules/core/accounts.js

aniwebcastle
@aniwebcastle
Feb 14 2018 10:19
can anybody tell me where is the database connection written in RC?
Loan Laux
@loanlaux
Feb 14 2018 10:20
@aniwebcastle You might be referring to the MONGO_URL environment variable
aniwebcastle
@aniwebcastle
Feb 14 2018 10:20
yes
where it is in rc?
Loan Laux
@loanlaux
Feb 14 2018 10:27
Either export it (just as any other environment variable), or specify it under galaxy.meteor.com > env in settings.json for deployment on Galaxy
aniwebcastle
@aniwebcastle
Feb 14 2018 10:29
{
"ROOT_URL": "",
"MONGO_URL":"8181",
"MAIL_URL": "",
"reaction": {
"REACTION_USER": "",
"REACTION_AUTH": "",
"REACTION_EMAIL": ""
},
"REACTION_LOG_LEVEL": "info",
"public": {}
}
this one?
Harshal Yeole
@harshalyeole-tudip
Feb 14 2018 10:29
I want to create anonymous user using plugin method
which server method I should Call?
Loan Laux
@loanlaux
Feb 14 2018 10:31
Wait, I was talking about changing MONGO_URL on a production environment. Are you talking about doing it on a dev environment?
aniwebcastle
@aniwebcastle
Feb 14 2018 10:31
yes
in server
not in localhost
Harshal Yeole
@harshalyeole-tudip
Feb 14 2018 10:59

I want to create anonymous user using plugin method
which server method I should Call?

No worries.
I got my answer
Thanks anyways

William Moss
@willmoss1000
Feb 14 2018 11:40
Added a new shop (localhost) and when I sign in as the new shop I'm getting the following error in the console TypeError: Cannot read property 'name' of undefined at TagNav.renderShopSelect (app.js:108464) at TagNav.render (app.js:108503) at modules.js:141552 at measureLifeCyclePerf (modules.js:140832) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (modules.js:141551) at ReactCompositeComponentWrapper._renderValidatedComponent (modules.js:141578) at ReactCompositeComponentWrapper.performInitialMount (modules.js:141118) at ReactCompositeComponentWrapper.mountComponent (modules.js:141014) at Object.mountComponent (modules.js:133869) at ReactDOMComponent.mountChildren (modules.js:140140)
Has anyone else seen this / should it be reported as an issue?
William Moss
@willmoss1000
Feb 14 2018 11:46
(this is on a fresh install)
Michael Jenny
@prinzdezibel
Feb 14 2018 11:49
@willmoss1000 yes, would be great if you could file an issue with exact instructions on how to reproduce.
thanks!
William Moss
@willmoss1000
Feb 14 2018 12:37
@prinzdezibel FYI reactioncommerce/reaction#3747
Michael Jenny
@prinzdezibel
Feb 14 2018 12:37
:+1:
Morteza Khamseh
@mori5ive
Feb 14 2018 13:22
hey all, i uploaded importer plugin but not working and not show in menu? reset require but after reset command database too reset, how to active plugin without reset database
Michael Jenny
@prinzdezibel
Feb 14 2018 13:28
@mori5ive you wouldn't need to reset. it should be picked up automatically. see https://docs.reactioncommerce.com/reaction-docs/master/plugin-creating-2
Morteza Khamseh
@mori5ive
Feb 14 2018 13:41
@prinzdezibel Registry entries are added when the app first starts, but they don’t get reloaded if they already exist. Running reset will reset the database and restart the app, allowing the app to read the register.js file you just created.
Brent Hoover
@zenweasel
Feb 14 2018 13:42
You can drop the Packages collection as well and restart
Morteza Khamseh
@mori5ive
Feb 14 2018 13:45
@zenweasel thaths right,drop directly from DB, but i not access to mongoDB in 1 port above running port, i use AWS ec2 ubuntu and dont solved this issue
Brent Hoover
@zenweasel
Feb 14 2018 13:46
which platform you are running on should not change where mongo runs. You can all do meteor mongo to get a command line interface to mongo
If you are doing development you are going to probably need access to the DB, not just for this
Morteza Khamseh
@mori5ive
Feb 14 2018 13:51
meteor mongo good way, tnx @zenweasel
Brent Hoover
@zenweasel
Feb 14 2018 13:51
:+1:
Amalan Jenicious
@amalan-shenll
Feb 14 2018 14:10
how to manage and access images within reaction plugin
Morteza Khamseh
@mori5ive
Feb 14 2018 14:37
@zenweasel i success, use ssh in RoboT3
Patrick Newell
@pnewell4_twitter
Feb 14 2018 14:43
looking for a quick suggestion on Workflows:
When stepping through a workflow, if conditions are met and the step can be skipped, where is the best place for that logic? in an HOC/Container? in the component's componentWillMount? somewhere else? thanks!
Vineeth
@Vineeth73009077_twitter
Feb 14 2018 15:31
i've successfully created image now. Even docker run is successful by creating admin user and then i was able to trace the logs, i got the final log message: Reaction initialization finished.
when i map the docker machine ip to DNS of my domain. nothing comes up
is there anything i'm missing?
 Vineeths-MacBook-Pro:epm vineeth$ docker-machine ls
NAME        ACTIVE   DRIVER         STATE     URL                       SWARM   DOCKER        ERRORS
easypeasy   -        digitalocean   Running   tcp://159.65.38.43:2376           v18.02.0-ce
Vineeths-MacBook-Pro:epm vineeth$ docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                  NAMES
54eadc71c97e        vineeth059/easypeasy:stable   "./entrypoint.sh nod…"   13 hours ago        Up 4 hours          0.0.0.0:80->3000/tcp   easypeasy