These are chat archives for reactioncommerce/reaction

13th
Apr 2016
Tyler Carroll
@thaicares
Apr 13 2016 00:00
that doesn't leave anything behind like in other directories?
either way I think it is working
Brent Hoover
@zenweasel
Apr 13 2016 00:01
well, based on what you said, we should be okay
Meteor is pretty good about keeping an app encapsulated in the one directory along with the ~/.meteor dir
Tyler Carroll
@thaicares
Apr 13 2016 00:02
db and everything is involved as well
Brent Hoover
@zenweasel
Apr 13 2016 00:02
when you run ./reaction everything is right there in the directory
except for stuff installed to ~/.meteor/
Tyler Carroll
@thaicares
Apr 13 2016 00:06
well that is depressing, it is still showing up blank
Brent Hoover
@zenweasel
Apr 13 2016 00:07
so you ran meteor npm install?
then you run ./reaction and it seems to be ok?
and you visit http://{your-server}:3000 and it’s blank?
Tyler Carroll
@thaicares
Apr 13 2016 00:08
yes
Brent Hoover
@zenweasel
Apr 13 2016 00:09
what’s the URL?
Tyler Carroll
@thaicares
Apr 13 2016 00:10
I just went to my home directory and ran "mkdir random" and permission was denied
Brent Hoover
@zenweasel
Apr 13 2016 00:10
then you have some serious issues
Tyler Carroll
@thaicares
Apr 13 2016 00:17
drwxr-xr-x
is the home directory
shouldn't fixing that help?
Brent Hoover
@zenweasel
Apr 13 2016 00:19
well, it’s not good if you can’t create a directory in your home directory
Tyler Carroll
@thaicares
Apr 13 2016 00:20
I'm just not sure what I should do with chmod what is the standard for home? 777 is way to open right, so what would be ideal?
Brent Hoover
@zenweasel
Apr 13 2016 00:22
unfortunately it’s not that simple, because there may be config files etc that need to have different permission
I think 755 works as the default
If you chown to yourself and reset everything to 755 you should be most of the way there
Tyler Carroll
@thaicares
Apr 13 2016 00:37
well that isn't working even restored it to an early version and nothing
watermelonjuice
@watermelonjuice
Apr 13 2016 06:02
hi reactioncommerce is fully open source?
Brent Hoover
@zenweasel
Apr 13 2016 06:03
Yep
hrath2015
@hrath2015
Apr 13 2016 06:04
want to do a fresh pull from dev after 1.3 upgrade. are there any any special instructions/steps to follow?
Brent Hoover
@zenweasel
Apr 13 2016 06:05
No, just meteor npm install
and ./reaction pull
watermelonjuice
@watermelonjuice
Apr 13 2016 06:05
is this the ecommerce app that use to meteor a few years ago?
hrath2015
@hrath2015
Apr 13 2016 06:06
:thumbsup: thanks
Brent Hoover
@zenweasel
Apr 13 2016 06:06
@watermelonjuice I doubt we are the only ecommerce app on Meteor, but we have been around for a couple years
or more
watermelonjuice
@watermelonjuice
Apr 13 2016 06:12
oh I was confusing with getfwd
so how does this differ from getfwd?
getfwd seems dead now? I first read about it on hacker news many years ago.
Brent Hoover
@zenweasel
Apr 13 2016 06:16
I have never heard of getfwd so I can’t answer that
Devin Labadini
@dlabadini
Apr 13 2016 06:41
I have Reaction setup except the localhost: 3000 is blank. What else am I missing?
watermelonjuice
@watermelonjuice
Apr 13 2016 06:44
Brent Hoover
@zenweasel
Apr 13 2016 06:45
@dlabadini Are you running locally?
watermelonjuice
@watermelonjuice
Apr 13 2016 06:45
do you need me to make a pull request?
Brent Hoover
@zenweasel
Apr 13 2016 06:45
@watermelonjuice pardon?
Devin Labadini
@dlabadini
Apr 13 2016 06:45
@zenweasel Yes, locally on OSX
Brent Hoover
@zenweasel
Apr 13 2016 06:45
Did you do meteor npm install?
Devin Labadini
@dlabadini
Apr 13 2016 06:46
@zenweasel Yep!
watermelonjuice
@watermelonjuice
Apr 13 2016 06:46
@zenweasel its a blank page linked from the readme file
Brent Hoover
@zenweasel
Apr 13 2016 06:47
@dlabadini That’s strange. Someone else was having the same problem this morning
Devin Labadini
@dlabadini
Apr 13 2016 06:47
@zenweasel I saw. What's the expected behavior? Any suggestions?
Brent Hoover
@zenweasel
Apr 13 2016 06:47
It should render the home page of the default site
Devin Labadini
@dlabadini
Apr 13 2016 06:48
@zenweasel I'd be happy to do a screen share if you want to poke around.
Brent Hoover
@zenweasel
Apr 13 2016 06:49
Ok
I just tried running it from a fresh install here and not seeing any issues
Devin Labadini
@dlabadini
Apr 13 2016 06:50
@zenweasel What's your Skype handle?
Brent Hoover
@zenweasel
Apr 13 2016 06:50
@dlabadini I will pm it to you
Devin Labadini
@dlabadini
Apr 13 2016 06:50
@zenweasel Sounds good.
newsiberian
@newsiberian
Apr 13 2016 06:55
@dlabadini, could you see, is there any console warnings in browser?
Brent Hoover
@zenweasel
Apr 13 2016 07:17
@thaicares I may know what your issue was/is. Devin was running into the same problem which appeared to be a conflict between the global npm and the local
@watermelonjuice Thanks for letting me know about the blank page. I don’t think we have a repo for our blog pages so I will just someone know
Boris Shifrin
@ramusus
Apr 13 2016 07:38
@erendira I have the same ideas with @aaronjudd where problem is. The structure is declared in register.js add new layout corePageWorkflow, Try to update Shops.layout and make sure it's inside
xiaoc li
@brianxcli
Apr 13 2016 08:41
From the sample data the shop id is a long code, but if I want to create my own shop, how can I create a shop id like that?
newsiberian
@newsiberian
Apr 13 2016 08:45
@brianxcli, _ids in reaction generated by Random.id(). Is that what you're asking?
xiaoc li
@brianxcli
Apr 13 2016 08:46
@newsiberian yes, thx.
xiaoc li
@brianxcli
Apr 13 2016 10:02
I also encountered the error "bunyan-format/package.json module cannot be found". I solved it by updating this meteor package to 0.3.1
blob
newsiberian
@newsiberian
Apr 13 2016 12:18
@brianxcli :clap:
watermelonjuice
@watermelonjuice
Apr 13 2016 12:45
would reaction commerce be useful for website doing bespoke tailoring?
or would it be recommend to build a custom website from scratch?
Lukas Sägesser
@ScyDev
Apr 13 2016 15:20

I'm adding some permissions to current users roles like this:

      user.roles[shopId].push("accountSellerProducts"); // for access to our own products route
      user.roles[shopId].push("accountSellerSellerorders"); // for access to our own orders route

      Roles.addUsersToRoles(Meteor.userId(), "accountSellerProducts", shopId);


    Meteor.users.update(Meteor.userId(),
      {
        "$set": {
          isSeller: isSeller,
          "profile.isDecided": true,
          "roles": user.roles
        }
      }
    );

But they are not effective immediately. A full page refresh from the browser is needed. Why?
Should I do it differently?
When I had it in the ReactionCore.Hooks.Events.add( "onCreateUser", ...) it worked immediately.

Aaron Judd
@aaronjudd
Apr 13 2016 17:59
@ScyDev probably needs the routing table refreshed, it checks permissions, and the onCreateUser probably occurs before the routing table is created.. (guessing here)
ReactionRouter.reload() might be a test of that
@watermelonjuice that’s all dependent on your requirements, needs, skills, etc. It could be used for that certainly, but will require customization. If you’re not afraid to build from scratch, then Reaction should be less work than that unless you have just the simplest of requirements.
watermelonjuice
@watermelonjuice
Apr 13 2016 18:03
I will be hiring a developer
Aaron Judd
@aaronjudd
Apr 13 2016 18:04
I’m thinking the majority of your focus will be around the bespoke product / tailor creator then?
watermelonjuice
@watermelonjuice
Apr 13 2016 18:04
yes
I sometimes find that when using an existing platform for project with big customizations that it can cause more problems than it can solve
Aaron Judd
@aaronjudd
Apr 13 2016 18:09
I think then it’s quite doable, you’d need to update the product page (or just create a different page) that is your custom creator product, so that’s the majority of the work. (without knowing specifics)
but schemas, order workflow,etc should all support this easily
Lukas Sägesser
@ScyDev
Apr 13 2016 19:18
@aaronjudd Tnx, but "ReactionRouter.reload()" doesn't help, unfortunately.
Tyler Carroll
@thaicares
Apr 13 2016 21:20
@zenweasel Ok so what is the problem between the global npm and the local?
Brent Hoover
@zenweasel
Apr 13 2016 21:52
@thaicares I was just working with someone else who had the same symptom (blank page). It was because (I suspect) they had run npm install before they ran meteor npm install. I would try rm -rf’ing the directory again, reclone, and then try just meteor npm install then ./reaction
Tyler Carroll
@thaicares
Apr 13 2016 21:56
but that is what I went through with your help the other day...
Brent Hoover
@zenweasel
Apr 13 2016 21:57
There were no error messages during the meteor npm install?
Tyler Carroll
@thaicares
Apr 13 2016 21:58
no I don't believe so
also I checked and home dir is the same as the previous time I was able to successfully get reaction up and running! So write for the user is not necessary
Brent Hoover
@zenweasel
Apr 13 2016 22:03
Yeah, I don’t think that meteor/reaction require write permissions out anywhere besides the directory and ./meteor
Ah, yes. The other thing you can try is rm -rf’ing your ~./meteor directory and starting again
erendira
@erendira
Apr 13 2016 22:12
thanks @aaronjudd and @ramusus it's working now