These are chat archives for reactioncommerce/reaction

3rd
Nov 2016
Dmitry
@dshitik
Nov 03 2016 07:46
@zenweasel how you work on project without hot-reload frontend? You don't use webpack.Everytime you change the code, you use the build projects from the Meteor, but do not use webpack. Why?
Lukas Schmierer
@lschmierer
Nov 03 2016 09:15
@zenweasel something like e.g. placing an image on a T-shirt before it is added to the shopping cart.
Brent Hoover
@zenweasel
Nov 03 2016 09:16
@dshitik That’s how Meteor works. While you can use Webpack and Meteor it’s not the supported method and far too complex for most users
@dshitik Also, Meteor does do hot-reload on the front-end. Only the code that is touched is reloaded
@lschmierer I think you would still end up having to change some portions of the core code, through we are working towards making the Product Detail page more modular so that pieces can be dynamically swapped out
it’s a goal to make any part of the application customizable through using plugins but we aren’t completely there yet
Brent Hoover
@zenweasel
Nov 03 2016 09:23
@dshitik We may at some point move to webpack, but we are focused on delivering features to the product right now
Lukas Schmierer
@lschmierer
Nov 03 2016 09:24
@zenweasel thank you! I will have a look into it.
Dmitry
@dshitik
Nov 03 2016 10:04
@zenweasel I observe when working with reactioncommerce long time reloading, i have more faster reload if i create only meteor app. ((
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 11:19
Hello people
I am working on deploying reaction to Openshift, but i keep getting this error mkdir: cannot create directory '/data': Permission denied
please what can i do
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 11:40
@zenweasel any help ^^
Brent Hoover
@zenweasel
Nov 03 2016 12:06
@andela-oadebayo I don’t have any special help except for the obvious, that you need to have write permissions in that directory
at what stage are you seeing that error?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:08
when the image i built is being deployed
Brent Hoover
@zenweasel
Nov 03 2016 12:09
Sorry, I don’t really know anything about Openshift.
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:10
Its OK, but i can i ask you more questions, hope i will not be disturbing you ?
Brent Hoover
@zenweasel
Nov 03 2016 12:10
Nope, what’s up?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:10
So have being on deploying since Monday, all to not avail.
Brent Hoover
@zenweasel
Nov 03 2016 12:11
You are using Docker?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:12
I tried using normal git deploy to heroku, but i come up with this error
: Error: Cannot find module '/andela-project-daini-380b547/imports/plugins/core/taxes/server'
2016-11-02T21:22:20.441986+00:00 app[web.1]:
2016-11-02T21:22:20.441988+00:00 app[web.1]: at Function.require.resolve (packages/modules-runtime/.npm/package/node_modules/install/install.js:101:1)
2016-11-02T21:22:20.441988+00:00 app[web.1]: at Module.resolve (packages/modules-runtime/.npm/package/node_modules/install/install.js:57:1)
2016-11-02T21:22:20.441989+00:00 app[web.1]: at Module.Mp.import (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:61:29)
2016-11-02T21:22:20.441990+00:00 app[web.1]: at meteorInstall.server.plugins.js (/app/.meteor/heroku_build/app/programs/server/app/app.js:14679:14)
2016-11-02T21:22:20.441991+00:00 app[web.1]: at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
2016-11-02T21:22:20.441992+00:00 app[web.1]: at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
2016-11-02T21:22:20.441992+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/app/app.js:14878:1
2016-11-02T21:22:20.441993+00:00 app[web.1]: at /app/.meteor/herokubuild/app/programs/server/boot.js:292:10
2016-11-02T21:22:20.441993+00:00 app[web.1]: at Array.forEach (native)
2016-11-02T21:22:20.441994+00:00 app[web.1]: at Function.
.each._.forEach (/app/.meteor/heroku_build/app/programs/server/node_modules/underscore/underscore.js:79:11)
2016-11-02T21:22:20.441995+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/boot.js:128:5
2016-11-02T21:22:20.618758+00:00 heroku[web.1]: Process exited with status 1
2016-11-02T21:22:20.622966+00:00 heroku[web.1]: State changed from starting to crashed
2016-11-03T02:49:49.834849+00:00 heroku[web.1]: State changed from crashed to starting
2016-11-03T02:50:08.000864+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_bui
and am using the swordfish fork of the buildpack
Brent Hoover
@zenweasel
Nov 03 2016 12:13
Hmmm, that’s a strange one
Yeah, that was my next question
it seems like some files are either not making it to the server or not making it into the build
everything works locally I assume?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:14
yes it does
Brent Hoover
@zenweasel
Nov 03 2016 12:15
have you tried working from a fresh clone of your repo?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:15
you mean i should fork the reaction repo again and work with that ?
Brent Hoover
@zenweasel
Nov 03 2016 12:16
no, your project is on github I assume?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:16
Yes, it is
Brent Hoover
@zenweasel
Nov 03 2016 12:16
just clone that repo into a separate directory, and verify that everything works from that
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:17
alright let me try that, by verify that everything works from that you mean work locally right ?
Brent Hoover
@zenweasel
Nov 03 2016 12:18
Yes, just to make sure someting is not being left out of Git. Probably not, but still best to verify
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:18
on it, will get back to you
Brent Hoover
@zenweasel
Nov 03 2016 12:19
kk
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 12:33
am back, a question, reaction init is meant to clone reaction and run the dependencies, now that am using a fork of the repo, and i cloned that, how would i run the dependencies ?
@zenweasel
will npm install suffice ?
Brent Hoover
@zenweasel
Nov 03 2016 12:56
meteor npm install
and then reaction
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:00
alright
i decided to run reaction init again, now i get this error
=> Started MongoDB.
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...
/Users/adebayooluwadamilola/.meteor/packages/coffeescript/.1.2.4_2.1ooigf3++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
      throw error;
      ^

Error: ENFILE: file table overflow, open '/Users/adebayooluwadamilola/WorkSpace/andela/reaction/node_modules/caniuse-db/features-json/css-featurequeries.json'
    at Error (native)
Brent Hoover
@zenweasel
Nov 03 2016 13:02
well you aren’t really testing anything if you run reaction init again
oh yeah
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:02
i wanted to have an new install
Brent Hoover
@zenweasel
Nov 03 2016 13:04
Are you on Yosemite?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:04
Nope Sierra
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:04
ok
Brent Hoover
@zenweasel
Nov 03 2016 13:05
probably still unrelated to your issue with Heroku but good to know
the changes in that blog fix it
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:06
yes i will fix that, wanted to have a fresh install for heroku, so i can tell you what ever i encounter. i really appreciate your time
Brent Hoover
@zenweasel
Nov 03 2016 13:07
Ok, I need to head to bed soon so I might not be around depending on how long that takes. But @jshimko might be around to help you.
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:07
alright
Brent Hoover
@zenweasel
Nov 03 2016 13:07
he should be up by now
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:08
But do you if people had such issues in the past, with heroku i mean
Brent Hoover
@zenweasel
Nov 03 2016 13:08
no, the last real issue we saw with Heroku was fixed by the swordfish build pack
But I don’t know how many people are deploying to Heroku
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:09
Alright
Thanks
will let you know of my progress, is it ok if i DM you
?
Brent Hoover
@zenweasel
Nov 03 2016 13:10
I like to keep all chats in the public channel so everybody can benefit
Dmitry
@dshitik
Nov 03 2016 13:10
@zenweasel where entry point from server and client to connect webpack? Or solution is the problem don't easily for connect webpack?
Adebayo Oluwadamilola
@andela-oadebayo
Nov 03 2016 13:10
No problem
Brent Hoover
@zenweasel
Nov 03 2016 13:11
@dshitik There are some articles and projects on the web for using Meteor and Webpack but I have no help for you.
Dmitry
@dshitik
Nov 03 2016 13:11
ok. no problem.
Brent Hoover
@zenweasel
Nov 03 2016 13:12
I don’t really know anything about it except for just using it casually a few times
samgitre
@samgitre
Nov 03 2016 15:29
hi everyone
Please I'm sorry to ask
when is the time for reactionCommerce program
so that I can follow up
samgitre
@samgitre
Nov 03 2016 15:42
please, can anybody give me the link to the channel?
Sophie He
@sophiehe
Nov 03 2016 16:06
Our Reaction Action Meetup live stream starts in less than an hour! Save your spot and ask us questions: https://www.crowdcast.io/e/reaction-action/register
Brent Hoover
@zenweasel
Nov 03 2016 16:19
@joebio Actually it looks like your application started successfully. What makes you think it’s broken?
soyJsus
@soyJSus
Nov 03 2016 21:33
if I want to remove paypal dashboard How would?
Brent Hoover
@zenweasel
Nov 03 2016 21:35
You should just be able to delete the plugin
soyJsus
@soyJSus
Nov 03 2016 21:54

Unable to resolve some modules:

"/imports/plugins/included/paypal/server" in
/home/Jsus/App/reaction/server/plugins.js (os.linux.x86_64)
"/imports/plugins/included/paypal/register.js" in

Brent Hoover
@zenweasel
Nov 03 2016 21:54
you need to restart
soyJsus
@soyJSus
Nov 03 2016 21:54
aah ok
thanks
Brent Hoover
@zenweasel
Nov 03 2016 21:57
:+1:
soyJsus
@soyJSus
Nov 03 2016 21:59
whats this Conec react ?
Brent Hoover
@zenweasel
Nov 03 2016 21:59
pardon?
soyJsus
@soyJSus
Nov 03 2016 22:00
Connect Reaction as a deployed service
Brent Hoover
@zenweasel
Nov 03 2016 22:00
that’s Launchdock
soyJsus
@soyJSus
Nov 03 2016 22:01
What is it for
Brent Hoover
@zenweasel
Nov 03 2016 22:02
it connects with our PaaS
soyJsus
@soyJSus
Nov 03 2016 22:03
aah ok
and Revision control ?
Brent Hoover
@zenweasel
Nov 03 2016 22:04
it allows you to make changes to products without immediately making them public
soyJsus
@soyJSus
Nov 03 2016 22:09
thanks
Dmitry
@dshitik
Nov 03 2016 23:01
@zenweasel please tell me why when i modify or remove file: .reaction->docker->scripts->plugin-loader.sh then all the same auto generate files server/plugin.js and client/plugin.js
thank
Brent Hoover
@zenweasel
Nov 03 2016 23:02
because that’s how the plugin loader works
it scans the custom plugin directory for plugins and then generates the appropriate imports
Dmitry
@dshitik
Nov 03 2016 23:04
but his actions are described in the plugin-loader.sh right?
or somewhere else
Brent Hoover
@zenweasel
Nov 03 2016 23:05
it happens in both that file (for docker) and in the cli
when you run reaction it also happens
Dmitry
@dshitik
Nov 03 2016 23:11
my problem is that I need to change the imports relative path to the absolute path. But relative paths are specified throughout the application, it is bad for integration with webpack, and i can't change it in plugin.js because it can not be changed. Please tell me where i can change it?
Brent Hoover
@zenweasel
Nov 03 2016 23:12
change what?
Dmitry
@dshitik
Nov 03 2016 23:13

/**

  • * DO NOT EDIT THIS FILE MANUALLY *
  • This file is generated automatically by the Reaction
  • plugin loader and will be reset at each startup.
    */

import '/imports/plugins/core/checkout/server';
import '/imports/plugins/core/dashboard/server';
....
change to ->
import '../imports/plugins/core/checkout/server';
import '../imports/plugins/core/dashboard/server';
....

Brent Hoover
@zenweasel
Nov 03 2016 23:17
if you don’t run reaction and run meteor directly you can bypass the plugin loader
which is totally unsupported of course
Dmitry
@dshitik
Nov 03 2016 23:21
No, tell me how to control the file server/plugin.js and client/plugin.js
your solution isn't optimal of course.
Brent Hoover
@zenweasel
Nov 03 2016 23:23
I don’t know how to tell you to do what you want to do. You could fork the CLI and create your own version of it that uses absolute paths
samgitre
@samgitre
Nov 03 2016 23:56
@sophiehe :+1: