These are chat archives for reactioncommerce/reaction

24th
Apr 2017
Janus Reith
@janus-reith
Apr 24 2017 07:28
@aviadbd @zenweasel As my user was not in the docker group, I also used to run it as root. docker build also worked, but i got the same meteor superuser warning
Update: i just put my user in the docker group, docker build now works without root, but i still get the same meteor warning
Janus Reith
@janus-reith
Apr 24 2017 07:34

Ran the suggested "sudo chown -Rh <username> .meteor/local", it is still there.

Regarding the line after that: Couldn't reproduce that. The next line should be:
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...

Janus Reith
@janus-reith
Apr 24 2017 09:28

Things that still bug me:
I could not find Fixtures to preset the brand logo, or product images.
Also I would like to have everything integrated in my plugin, but I have to place them in /private/data, and settings in /private/settings/reaction.json

I guess there must be a way to do this within a plugin, but dont know how. Maybe the import section of the docs will be helpful:
https://docs.reactioncommerce.com/reaction-docs/development/reaction-import

Hope I don't annoy you, I just think its some general issues that make some people wonder when starting with reaction
Janus Reith
@janus-reith
Apr 24 2017 10:16

Ok, the docs on import are confusing as well..
In the beginning, there is an example that uses just import:
Reaction.Import.process(Assets.getText("data/Shipping.json"), ["name"], Reaction.Import.shipping);

But then under "Batch inserts and fixture data" it is suggested to use Reaction.Import.fixture() [...] "when importing data which only needs to be imported if it’s not already present in the database," - I thought json fixtures are such a case?

And to make it more complicated, if I look at /server/starup/load-data,js the Shops json is imported with Reaction.Import.process(), the other collections with Fixture.process()

So, I wonder what would be best way to import my custom fixtures, that behave the same way like Fixtures in /private/data. Currently gives me an "Error: Unknown asset: Tags.json" when i try to load it from the same folder

septk
@septk
Apr 24 2017 11:12
Hi, I have a problem when I trying to do a checkout. I have activated shipping options, but checkout page show a error that I don't have shipping methods configured. How can I resolve this?
Loan Laux
@loanlaux
Apr 24 2017 11:25
Hi guys! Have anybody here tried to build a page-by-page pagination module for the product list?
Loan Laux
@loanlaux
Apr 24 2017 11:39

Currently facing two options:

  1. The "logical" one, which would only fetch page x out of y when requested using subscriptions. As far as I understand, it would require a few changes on the server side. Not sure how to proceed with this?
  2. The very ugly one, which would fetch all the products on page load and basically divide them into x sections in the DOM which I would show/hide using jQuery. I obviously don't wanna do it that way.

Would appreciate your help on that one!

aviadbd
@aviadbd
Apr 24 2017 14:29
@zenweasel still on this - Im not running reaction at all but trying to build the Dockerfile, as @janus-reith tried as well. I'll try to add it to the docker group. I think the docs should tell you how to do all this, maybe even a step-by-step tutorial, especially if deploying to Docker is the suggested way for Reaction.
Istvan Tobias
@tobias-istvan
Apr 24 2017 14:38
Hi guys,
I am stucked and I need some help. I would like to try the Reaction Commerce and I installed everything (on Windows 10) I started the app with 'reaction' but after '=> Started MongoDB.' nothing happened.
I tried with 'meteor' and what I see is it stopped at 'Extracting templating-compiler@1.3.2... |' .
Did I miss some step(s)?
Jeremy Shimko
@jshimko
Apr 24 2017 14:39
Sounds like you didn’t wait long enough. The first build takes a few minutes.
Loan Laux
@loanlaux
Apr 24 2017 14:39
Hey @tobias-istvan, did you try waiting a veeeeery long time?
Haha, wasn't quick enough
Istvan Tobias
@tobias-istvan
Apr 24 2017 14:41
Hm, okay. Around how long? I am at this stage around 5 minutes.
Jeremy Shimko
@jshimko
Apr 24 2017 14:42
Not usually that long, but unless you see an error, nothing has actually gone wrong yet.
Istvan Tobias
@tobias-istvan
Apr 24 2017 14:43
Okay :-) I wait for it :smile:
Jeremy Shimko
@jshimko
Apr 24 2017 14:47
The first time you run Reaction in development there are packages being downloaded and hundreds of files being transpiled and built into the development bundle. It’s unfortunately a little time consuming sometimes, but it’s definitely faster after you’ve done that once.
If it’s still hanging in a few mins, cancel and start it again. Every once in a while something can hang (not too common, but waiting 5+ mins isn’t typical)
Istvan Tobias
@tobias-istvan
Apr 24 2017 14:50
I restart from zero now.
Istvan Tobias
@tobias-istvan
Apr 24 2017 15:15
After 10 minutes it has exited: "cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream..."
Ivanthadev
@ivanthemeh
Apr 24 2017 15:16
hey all, can someone explain to me how I would setup the variants and products briefly for a tee shirt site with sizes and colors? Please.
Jeremy Shimko
@jshimko
Apr 24 2017 15:16
@tobias-istvan you installed all of the requirements here, correct?
https://docs.reactioncommerce.com/reaction-docs/master/requirements#windows
specifically npm install -g windows-build-tools
Istvan Tobias
@tobias-istvan
Apr 24 2017 15:18
yeah it started now (for the second try)
Janus Reith
@janus-reith
Apr 24 2017 15:37
@aviadbd at which point exactly does your docker build fail? It worked for me, even with the Meteor root Warnung
*Warnung
Damnit *warning
Jeremy Shimko
@jshimko
Apr 24 2017 15:39
@aviadbd Yeah, that’s just a warning, not an error. The directory permissions get updated right after the build finishes, so you can definitely ignore it.
That is also the longest part of the build, so you just didn’t wait long enough for it to finish.
I used to hide that warning for this exact reason (people assume the build failed), but that also used to hide all other useful warnings, so I decided to revert it.
aviadbd
@aviadbd
Apr 24 2017 16:38
@janus-reith @jshimko you're right, the error is immediately after it.
/opt/build_scripts/build-meteor.sh: line 30:   116 Killed                  meteor build --directory $APP_BUNDLE_DIR
The command '/bin/sh -c cd $APP_SOURCE_DIR &&             bash $BUILD_SCRIPTS_DIR/build-meteor.sh &&             bash $BUILD_SCRIPTS_DIR/post-build-cleanup.sh' returned a non-zero code: 137
elenigna
@elenigna_twitter
Apr 24 2017 16:42
Hi R-team, I'd love to use this platform, I just can't seem to find a functioning demo, any tips? The two shops - skiing, wine - are not functioning properly as far as I can see, one has only sold out products and the other one's checkout flow seems very clunky.. How easy would it be to implement on a static HTML + CSS + JS site I am building, that's as far as my coding knowledge go. Ta in advance.
Janus Reith
@janus-reith
Apr 24 2017 17:14
@elenigna_twitter these are the other two I know:
https://www.itfurniturestore.com/
https://nextlevel.com.bo/
Janus Reith
@janus-reith
Apr 24 2017 17:28

@aviadbd did a quick google on meteor code 137, this came up first: meteorhacks/meteord#96

How much ram do you have, and did you set up a swap?

Daniel Honig
@dhonig
Apr 24 2017 17:58
Seems strange to me that updating a product/variant/option lacks a "Save" Ui element
Aaron Judd
@aaronjudd
Apr 24 2017 19:01
@dhonig everything is saved.. when you edit it, but not “live” until you publish it..
aviadbd
@aviadbd
Apr 24 2017 19:06
@janus-reith So, can I just run http://stackoverflow.com/a/26248916/140576 this on the Dockerfile?
Daniel Honig
@dhonig
Apr 24 2017 19:07
@aaronjudd thanks I noticed. I just thought the behaviour was inconsistent with other parts of the UI where I have a button to push and I get the green pop up that makes feel confident and warm knowing nothing was lost. But it does update the product info live, which is very cool
Aaron Judd
@aaronjudd
Apr 24 2017 19:11
good feedback..we’ve got a pretty extensive UI update coming, being worked on in reactioncommerce/reaction#1647
aviadbd
@aviadbd
Apr 24 2017 19:20

@janus-reith Cant say I haven't tried.

RUN dd if=/dev/zero of=/swapfile bs=1024 count=256k
RUN mkswap /swapfile
RUN swapon /swapfile
RUN echo /swapfile       none    swap    sw      0       0  | tee -a /etc/fstab
RUN echo 10 | tee /proc/sys/vm/swappiness
RUN echo vm.swappiness = 10 | tee -a /etc/sysctl.conf
RUN chown root:root /swapfile
RUN chmod 0600 /swapfile

But I can't run it without using FROM first, which has to be the reactioncommerce/base:v1.3.0, which in turn starts the meteor installation. Which fails.

Aaron Judd
@aaronjudd
Apr 24 2017 19:24
@janus-reith @elenigna_twitter love to encourage folks to post their shops into https://forums.reactioncommerce.com/t/share-your-reaction-shop/331 (as we really don’t track “in the wild” installs very well).. there’s a bunch more though, so that seems like a good place to start, and maybe we can get a showcase/listing going somewhere soon
aviadbd
@aviadbd
Apr 24 2017 19:24
@aaronjudd I'll be happy to put mine up there if I could get it started :-)
Aaron Judd
@aaronjudd
Apr 24 2017 19:27
@aviadbd please! I’ve been meaning to encourage that for a while. I wanted to try the “gitter topics” for that, but haven’t really been able to figure out a way to make that work so the forum seems like a good enough spot...
Janus Reith
@janus-reith
Apr 24 2017 19:35
@aviadbd Well, you cant run this ON the dockerfile. What is your configuration, are you using docker locally or on a remote server/vps/etc? Which OS do you use?
aviadbd
@aviadbd
Apr 24 2017 19:37
@janus-reith Locally, on a Mac. Eventually, on DigitalOcean.
@aaronjudd I hope a Hebrew shop helps. TBH, it should, as RTL is a very important feature (which I saw you're mentioning on your site, which is nice).
Aaron Judd
@aaronjudd
Apr 24 2017 19:40
:thumbsup: that’s exciting - I love seeing RTL in use (an under-rated feature in my book!)
soyJsus
@soyJSus
Apr 24 2017 20:17
hello
Carlos Olivera Terrazas
@carlos-olivera
Apr 24 2017 21:13
Hi, someone with experience implementing "kadirahq fast-render" with reactioncommerce? the Router implementation is not too easy to follow