These are chat archives for reactioncommerce/reaction

27th
Sep 2016
Michael Duane Mooring
@mikeumus
Sep 27 2016 00:59
Hi Soy
Tuxedo Phạm
@MrTux3do_twitter
Sep 27 2016 02:30
How I can create new theme :(
Jeremy Shimko
@jshimko
Sep 27 2016 03:33
@MrTux3do_twitter you can check out the tutorial on the docs site for that
https://docs.reactioncommerce.com/reaction-docs/master/creating-a-theme
Michael Duane Mooring
@mikeumus
Sep 27 2016 04:04
@jshimko, replacing/extending a template didn't work for me: https://github.com/MassDistributionMedia/rc-ca-blinds/blob/master/client/templates/layout.js (imagine lines 9 and 14 uncommented).
Michael Duane Mooring
@mikeumus
Sep 27 2016 04:10
I was trying to extend the varientForm template.
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 06:06
how to deploy to scaleway.com VPS?
how to integrate this https://www.drift.com to reaction platform?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 06:10
Hi @hbakhtiyor
I strongly suggest you use containers, wherever you plan to deploy
reg chat: I think the guys from https://getoutfitted.com/ have integrated a chat
(different from this one you proposed)
You can also check here: reactioncommerce: https://waffle.io/reactioncommerce/reaction if there is any chat platform planned for future implementation and probably you will get strong support if you start doing it
Tuxedo Phạm
@MrTux3do_twitter
Sep 27 2016 07:36
I want to change html of website, How I do? or I must change it in core directory
Michael Duane Mooring
@mikeumus
Sep 27 2016 08:19
Hi @MrTux3do_twitter, your best bet to my current understanding would be to extend your template:
Jerry
@xusai2014
Sep 27 2016 08:48
Hi all, I meet the problem that spiderable: phantomjs failed: { [Error: Command failed: ] killed: true, code: 1, signal: null }
stderr: .please give me some advice
ongowork:spiderable
how to solve this?
Michael Duane Mooring
@mikeumus
Sep 27 2016 10:02
Got my <select> into variantForm and did a SO article on how to do it for the next RC traveler to come across:
Himanshu Khona
@himanshukhona_twitter
Sep 27 2016 10:40
Hey Guys..New to reaction..Just set it up but product page gives page not found even though it adds product. Also need to use a nice theme, does anyone have it?
Also if anyone can help solve page not found issue
I have set it up locally on my mac.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 11:59
suggestion: try the docker containers approach
Himanshu Khona
@himanshukhona_twitter
Sep 27 2016 13:38
@EpifaniaCollection - Can you point me to some document for using docker container? Is there one of mac too?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 13:40
I am a linux user
when you reach docker-compose phase, look at the example audiojak gave on: https://hub.docker.com/r/reactioncommerce/reaction/ ; for best experience, update mongo image from: mongo:latest to mongo:3.0
Himanshu Khona
@himanshukhona_twitter
Sep 27 2016 13:44
Thank you @EpifaniaCollection
Jeremy Shimko
@jshimko
Sep 27 2016 13:45
I’ve never had an issue with the latest Mongo. I use it regularly.
3.0 is pretty far behind the current 3.2.9
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 13:48
@jshimko I had an issue with my 2+ months old installation, and googling I found a thread of @aaronjudd stating mongo version compatibility and solved it for me.
Thanks for tell us that newer RC versions are compatible with latest mongo.
Jeremy Shimko
@jshimko
Sep 27 2016 13:49
Although I never had any problems, I believe Meteor 1.4 was where the official support for Mongo 3.2 was released. So perhaps that fixed whatever issue you were having.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 13:51
@jshimko : planing to have different version of the shop with product description in more languages . Any hints if it's supported or I need to have two shops?
Jeremy Shimko
@jshimko
Sep 27 2016 13:58
Good question. Not sure how that gets handled when the content is in the database. @aaronjudd would be the best person to ask about that.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 14:14
products on the disk would make a difference?
Jeremy Shimko
@jshimko
Sep 27 2016 14:14
No. Translations in the markup make the difference. They’re static.
(like UI text that doesn’t change)
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 14:15
like the labels of the buttons/edit boxes?
Jeremy Shimko
@jshimko
Sep 27 2016 14:20
right
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 14:21
and this way you piggyback on the existing i18n solution :)
nice idea, you know anyone doing it, to get a clue how to add the description label mainly
Jeremy Shimko
@jshimko
Sep 27 2016 14:23
all translations are here:
https://github.com/reactioncommerce/reaction/tree/master/private/data/i18n
Just have to find the i18n key for the thing you want to translate and then add the translation to the file for your language.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 14:26
Sorry I was not clear. I think we are talking about different things. The translation of the interface (e.g. ro.json) was already done. All fine there.
I am looking to translate the name and description of each product in the shop (as opposite to the labels which are already translated via the existing framework)
Jeremy Shimko
@jshimko
Sep 27 2016 14:27
well, you said “description label”, so I assumed you meant the UI element
yeah, that’s a database thing and a bit more complicated. You’ll have to talk to @aaronjudd about that.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 14:27
10x
btw, I've resubmitted the ro.json and an update to shops.json (to add the language) - using development branch.
Aaron Judd
@aaronjudd
Sep 27 2016 15:19
@EpifaniaCollection for now the assumption is that the language you set as your base, is the language you’ll be entering products in. However, we do have a plan to add language versioning to the products (so that you can have enter the product in multiple languages and display different layout and content per language). If you needed this now, I’d add a language field to the product schema and update the publications to use the selected languages.. that help?
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 15:25
https://www.cloudflare.com/
is it reasonable to use the service for the platform?
how to enable https and http/2?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 15:46
@aaronjudd yes, that would be good for most cases. I am not sure if layout change is req now (unless is mandatory for RTL)
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 15:52
@hbakhtiyor I would put an nginx in front for the https part
@hbakhtiyor I can provide the docker-compose for doing the https part.
Spencer Norman
@spencern
Sep 27 2016 17:02
hey @EpifaniaCollection and @hbakhtiyor we have implemented Zopim chat services which is owned and integrates with Zendesk. if you’re interested, I can update our open source lib. Since we moved to the module structure, most of our open source packages haven’t been updated.
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 17:07
@EpifaniaCollection thanks, would be nice
@spencern thanks, but need for drift
Spencer Norman
@spencern
Sep 27 2016 17:07
:+1:
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:07
@spencern thanks! yes, @hbakhtiyor was interested in a chat service.
Myself, I am looking for upgrade best practices. E.g. how do you upgrade your DB when a new version of the code comes? (same topic with: https://forums.reactioncommerce.com/t/merging-new-updates-into-the-registry/126/2 )
Jeremy Shimko
@jshimko
Sep 27 2016 17:08
Both Zopim and Drift can be used via the existing Segment integration
Spencer Norman
@spencern
Sep 27 2016 17:08
Segment integration is :fire: by the way. Making our marketing team verrry happy
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 17:08
it's extra cost ((
Jeremy Shimko
@jshimko
Sep 27 2016 17:08
@hbakhtiyor For sure. But so is writing software. ;)
Spencer Norman
@spencern
Sep 27 2016 17:10
:point_up: this, we have too many integrations already and each one was costing dev time
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 17:10
@EpifaniaCollection starting to deploy :) and novice in the platform and meteor
Spencer Norman
@spencern
Sep 27 2016 17:20
@EpifaniaCollection - we’ve only had to make major changes/migrations to our DB one time and that was when we were migrating from 0.9.x to 0.12.x (we’ve been on Reaction for a while) and that was a pretty manual, painful process. Since then, all of our updates haven’t required much update to the DB and can just deploy over the top.
If you have any specific questions, I’d be happy to give more specific examples
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:21
@hbakhtiyor good luck. For https, try the automatic generation (and update) of let's encrypt certificates , by using this docker: bringnow/haproxy-letsencrypt:latest
Spencer Norman
@spencern
Sep 27 2016 17:22
we’re using an nginx frontend for our lets encrypt generation, but haproxy would probably work just as well
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:27
thanks. I can share the haproxy/automatic ssl refresh there should anyone find it interesting
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:32
@spencern: I have an 2+ months old installation. I updated the code (pulled new docker container), but, of course, strange things happen with a db out of sync, so I started to manually hunt for differences and update the schema. Is it possible to export the images collections just like any other collection and import it in a brand new db ?
any tools/commands/gists used to do diffs between dbs ?
Jeremy Shimko
@jshimko
Sep 27 2016 17:56
mongodump/mongorestore will transfer everything, including the images
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:57
I need a format which allows to edit the intermediate file before reimporintg
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:57
mongoimport/mongoexport would allow me to handle the collections with images ?
Jeremy Shimko
@jshimko
Sep 27 2016 17:57
probably not
Avoid using mongoimport and mongoexport for full instance production backups. They do not reliably preserve all rich BSON data types, because JSON can only represent a subset of the types supported by BSON. Use mongodump and mongorestore as described in MongoDB Backup Methods for this kind of functionality.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 17:59
I will try dump/restore and see if it has a format which allows me to change structure. Hopefully it's a not binary one.
Jeremy Shimko
@jshimko
Sep 27 2016 18:00
it is
you’ll need to do both methods if you want to edit a text file for some collections, but export/import binary data from others
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 18:02
in our case, only cfs_* are binary, right?
Jeremy Shimko
@jshimko
Sep 27 2016 18:02
yes
(i think)
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 18:10
fyi
remote: npm WARN deprecated lodash.assign@4.2.0: This package is deprecated. Use Object.assign.
remote: npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
remote: npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
remote: npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

got from heroku console outputs

remote: Meteor 1.4.1.1 has been installed in your home directory (~/.meteor).
remote: 
remote: Now you need to do one of the following:
remote: 
remote:   (1) Add "$HOME/.meteor" to your path, or
remote:   (2) Run this command as root:
remote:         cp "/app/tmp/cache/1.4.1.1/.meteor/packages/meteor-tool/1.4.1_1/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor

nothing to do?

Aaron Judd
@aaronjudd
Sep 27 2016 18:23
re: the warnings, nothing to do at the moment, those are devDependencies of the mocha/testing environment. should be resolved when we are able to use mocha 3
@EpifaniaCollection the Reaction.Import can handle images as well, but I’m not sure the docs cover that, there are conversations in the chat in the past though that I remember this being covered..
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 27 2016 18:25
2016-09-27T18:22:44.000646+00:00 app[web.1]:     - - - - -

2016-09-27T18:22:44.000650+00:00 app[web.1]:     at Socket.<anonymous> (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:306:22)

2016-09-27T18:22:44.000651+00:00 app[web.1]:     at emitOne (events.js:77:13)

2016-09-27T18:22:44.000652+00:00 app[web.1]:     at Socket.emit (events.js:169:7)

2016-09-27T18:22:44.000652+00:00 app[web.1]:     at readableAddChunk (_stream_readable.js:153:18)

2016-09-27T18:22:44.000653+00:00 app[web.1]:     at Socket.Readable.push (_stream_readable.js:111:10)

2016-09-27T18:22:44.000654+00:00 app[web.1]:     at TCP.onread (net.js:536:20)
getting mongo connection error from heroku
i can connect from my local to mlab mongodb instance
Aaron Judd
@aaronjudd
Sep 27 2016 18:29
@hbakhtiyor the core team only uses Docker for deployment, sorry that I can’t really help there, but it does look like a connection error
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 27 2016 18:31
@aaronjudd reaction.import would require the jpg/png ? (but in my care are already in DB)
Aaron Judd
@aaronjudd
Sep 27 2016 19:54
@EpifaniaCollection ah, yes, you are correct.. then as @jshimko mongoimport/export should work..
Spencer Norman
@spencern
Sep 27 2016 19:56
we use mongodump / mongorestore to move data around from production -> local, etc and when we moved from one host to another (self hosted to Compose and now Compose to AWS)
you can’t really edit anything super well in between but you could pull down, edit with mongo commands on local and then push back up
and you are correct, images are binary
@EpifaniaCollection
Enny Isambert
@ennysantana
Sep 27 2016 20:58
Hey people! i need help with reaction installation
this message in the Konsole: Not in a Reaction app. Exiting....
i have opensuse leap 42.1,
i created a new folder and with "cd" at the Konsole i'm in the folder, them a write reaction init and BAM! the error message
Enny Isambert
@ennysantana
Sep 27 2016 21:05
if anyone could help
I would be grateful
Michael Duane Mooring
@mikeumus
Sep 27 2016 22:12
Sorry @ennysantana, I'm only familiar with RC on Ubuntu Trusty.