These are chat archives for reactioncommerce/reaction

29th
Mar 2017
Yuriy
@furkoyuriy_twitter
Mar 29 2017 11:47
how i can run reaction run in background ?
Brent Hoover
@zenweasel
Mar 29 2017 11:48
not sure what you mean
You can just run it in the terminal
Yuriy
@furkoyuriy_twitter
Mar 29 2017 11:50
i need run project after deploy i tkink run "screen -m -d meteor or screen -d -m reaction " It's posible ?
how is true deploy reaction project ?
Brent Hoover
@zenweasel
Mar 29 2017 11:52
Yuriy
@furkoyuriy_twitter
Mar 29 2017 11:53
screen -m -d meteor --allow-superuser :) work
Brent Hoover
@zenweasel
Mar 29 2017 11:54
This is for a production deployment?
Yuriy
@furkoyuriy_twitter
Mar 29 2017 12:11
not, only development

Can I use next command:

  • meteor build --dirrectory ../build
  • forever main.js

But after this commands - reactioncommecre not working (

Brent Hoover
@zenweasel
Mar 29 2017 12:19
You don’t want to be doing build for development
just run reaction and it will reload on change
Yuriy
@furkoyuriy_twitter
Mar 29 2017 12:25
ok thank you

@zenweasel

You don’t want to be doing build for development
how about production ?

Brent Hoover
@zenweasel
Mar 29 2017 12:27
Yes, that’s what you would want to do for production
Jeremy Shimko
@jshimko
Mar 29 2017 15:36
and that’s only part of it. there are several more steps for a production build
Arotimi Busayo
@code_smata_twitter
Mar 29 2017 16:35
Hello.. guys..
please how do I access my admin account
I have tired locallhost:3000/reaction/dashboard
Does not seem to bee working
hrath2015
@hrath2015
Mar 29 2017 16:36
please check on console.
Arotimi Busayo
@code_smata_twitter
Mar 29 2017 16:37
@hrath2015 I don't get
The console isn't printing any related message
hrath2015
@hrath2015
Mar 29 2017 16:39
blob
Arotimi Busayo
@code_smata_twitter
Mar 29 2017 16:43
Oh.. cool.. Let me reset the app
and see if this shows up
it's currently not showing when I run "reaction run"
hrath2015
@hrath2015
Mar 29 2017 16:44
or best is to set using settings file
Arotimi Busayo
@code_smata_twitter
Mar 29 2017 16:46
REACTION-USER, REACTION_AUTH, REACTION_EMAIL?
hrath2015
@hrath2015
Mar 29 2017 16:49
please update dev.settings.json file
reaction reset and reaction run
Arotimi Busayo
@code_smata_twitter
Mar 29 2017 16:51
Done..
THanks
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:07
hi guys
I ran a server based on 'Reatstion' :)
anyone know how you can run 'reaction' as a daemon ?
Jeremy Shimko
@jshimko
Mar 29 2017 19:09
You don’t. It’s only for development. A production build is simply a Node app.
The recommended method is to use Docker because that solves all of that for you already.
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:11
OK i understand. please explain me how i can run as Node app.
Jeremy Shimko
@jshimko
Mar 29 2017 19:12
you can take a look at all of the scripts in the Docker base image. You’ll need to do all of that manually.
https://github.com/reactioncommerce/base
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:14
Jeremy Shimko
@jshimko
Mar 29 2017 19:14
But I can guarantee you are in for hours and hours of work going that route and that learning the basics of Docker is significantly easier.
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:14
i know docker
i worked
Jeremy Shimko
@jshimko
Mar 29 2017 19:14
Then why not use it?
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:15
but i use ansible and vm now )
Jeremy Shimko
@jshimko
Mar 29 2017 19:15
alrighty.
good luck
You’re going to have to make sure you do all of the steps that happen in the Docker image because there’s some Reaction-specific steps that aren’t optional. The Meteor docs will not cover any of that.
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:18
if i'll have trouble with ansible+vm i'll move on docker
ok.. good night
Jeremy Shimko
@jshimko
Mar 29 2017 19:19
For what it’s worth, it’s a single command to create a production deployment and one more to run it.
And it’s officially supported.
Yuriy
@furkoyuriy_twitter
Mar 29 2017 19:22
ok . i runned Reaction+Docker on my notebook
CisumInas
@cisuminas
Mar 29 2017 20:56
@jshimko what is the single command you run to create an prod env?
Jeremy Shimko
@jshimko
Mar 29 2017 20:57
reaction build your-docker-image-name
CisumInas
@cisuminas
Mar 29 2017 20:58
thx, how long does it usually take one build?
Jeremy Shimko
@jshimko
Mar 29 2017 20:59
Depending on your download bandwidth (for npm installs) and your computer resources, usually about 20 mins.
CisumInas
@cisuminas
Mar 29 2017 21:01
20min, on an core i7 system?
Jeremy Shimko
@jshimko
Mar 29 2017 21:01
Then you can run your production image with:
docker run -d \
  -p 80:3000 \
  -e ROOT_URL="http://<your app url>" \
  -e MONGO_URL="mongodb://<your mongo url>" \
  -e REACTION_EMAIL="youradmin@yourdomain.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  your-docker-image-name
CisumInas
@cisuminas
Mar 29 2017 21:02
Ok :) thx a lot jeremy, I thought before the system failed
Jeremy Shimko
@jshimko
Mar 29 2017 21:02
Yes. It has to install, optimize, and compile hundreds of JS files and a bunch of npm modules into a single production bundle for the client and server.
Mike Murray
@mikemurray
Mar 29 2017 21:03
and its mosly likely not multi-threaded
Jeremy Shimko
@jshimko
Mar 29 2017 21:04
It’s the unfortunate reality of large javascript apps these days. There are a lot of processes that need to happen to convert a huge directory full of files into a couple highly optimized files.
Also, if you’re not customizing Reaction, you can skip the build step and use our official release build.
docker run -d \
  -p 80:3000 \
  -e ROOT_URL="http://<your app url>" \
  -e MONGO_URL="mongodb://<your mongo url>" \
  -e REACTION_EMAIL="youradmin@yourdomain.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  reactioncommerce/reaction:latest
That’ll download and start right away
CisumInas
@cisuminas
Mar 29 2017 21:10
hmm, any of u guys experiance trouble building, do u run the command with sudo rights?
                        throw(ex);
                        ^

Error: EINVAL: invalid argument, readlink '/root/.meteor/packages/matb33_collection-hooks/.0.8.4.1dwisoj++os+web.browser+web.cordova/npm/node_modules/.bin/esvalidate'
    at Error (native)
    at Object.fs.readlinkSync (fs.js:857:18)
    at Object.realpathSync (fs.js:1457:25)
    at Object.wrapper [as realpath] (/tools/fs/files.js:1535:35)
    at getExternalPath (/tools/isobuild/builder.js:482:30)
    at /tools/isobuild/builder.js:511:32
    at Array.forEach (native)
    at walk (/tools/isobuild/builder.js:464:34)
    at /tools/isobuild/builder.js:556:11
    at Array.forEach (native)
    at walk (/tools/isobuild/builder.js:464:34)
    at Builder.copyDirectory (/tools/isobuild/builder.js:594:5)
    at /tools/isobuild/bundler.js:2050:17
    at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.4.3_2.8am6z8++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
    at JsImage.write (/tools/isobuild/bundler.js:2009:7)
    at ServerTarget.write (/tools/isobuild/bundler.js:2278:13)
    at /tools/isobuild/bundler.js:2373:30
    at /tools/isobuild/bundler.js:2506:9
    at Array.forEach (native)
    at /tools/isobuild/bundler.js:2496:26
    at /tools/isobuild/bundler.js:2837:22
    at /tools/utils/buildmessage.js:271:13
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at bundle (/tools/isobuild/bundler.js:2670:31)
    at /tools/isobuild/bundler.js:2617:32
    at Object.withCache (/tools/fs/files.js:1601:12)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2617:16)
    at buildCommand (/tools/cli/commands.js:949:30)
    at Command.func (/tools/cli/commands.js:824:12)
    at /tools/cli/main.js:1483:23
`
l0qii
@l0qii
Mar 29 2017 21:15
@cisuminas that's the same error I've been getting. I haven't found a solution yet
CisumInas
@cisuminas
Mar 29 2017 21:16
Did it work for u before?
what os are u runing?
I am at MAC
l0qii
@l0qii
Mar 29 2017 21:16
i'm also on a Mac, no I've never been able to do a build successfully
Jeremy Shimko
@jshimko
Mar 29 2017 21:23
You’re unfortunately not going to be able to build on a Mac until Meteor releases our fix in Meteor 1.4.4
meteor/meteor#8491
In the meantime, you can either use the official image or build on a Linux machine using Docker Machine.
https://docs.reactioncommerce.com/reaction-docs/master/deploying-reaction-using-docker
CisumInas
@cisuminas
Mar 29 2017 21:30
Thx Jeremy
Guess will have to set up an virtual box :)
l0qii
@l0qii
Mar 29 2017 21:35
yeah, I'm creating an img on virtual box now, we'll see how that goes
CisumInas
@cisuminas
Mar 29 2017 21:36
:thumbsup: