These are chat archives for reactioncommerce/reaction

22nd
Jun 2016
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 07:07
Hi Jeremy, Docker is for Windows and IOS but my machine is ubuntu. anything else which i can use to prepare production build
?
Brent Hoover
@zenweasel
Jun 22 2016 07:08
Docker also runs on Ubuntu, that’s what we use
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 07:08
ohh great
let me try this
Brent Hoover
@zenweasel
Jun 22 2016 07:09
It’s even simpler to use on Linux
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 07:23
this docker is just to prepare build right? then i can deploy this build on my AWS server?
Brent Hoover
@zenweasel
Jun 22 2016 07:25
Yeah
You should just be able substitute AWS for DIgital Ocean in the docs
Theoretically, I have not actually done it
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 10:41
docker looks difficult to me. :(
Brent Hoover
@zenweasel
Jun 22 2016 10:42
You could also try building to a tar a deploying that way
but Docker is our supported method
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 10:43
actually i have already deployed it on AWS..
i created new git repository after making changes in reaction
and then took the clone on AWS serevr
and started it
but yesterday jeremy said that it can cause performance issue
and i think he is right
i m actually facing performance issue
Brent Hoover
@zenweasel
Jun 22 2016 10:44
Running the development server in production will definitely cause problems
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 10:45
preparing tar means prepare zip file and then deploy on AWS?
will it be fine then?
Brent Hoover
@zenweasel
Jun 22 2016 10:46
How are you starting it?
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 10:46
after taking git clone on AWS
i m running nohup ./reaction -p <port> &
Brent Hoover
@zenweasel
Jun 22 2016 10:47
The main thing is to run meteor build
so that you can get the concatenated, minimized versions of the files, etc.
As Jeremy mentioned
If you are running from a clone when you are still running the dev version
You run try running meteor run —production as well
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 10:49

u r right..

if u dont mind then can u provide steps

to prepare build
Brent Hoover
@zenweasel
Jun 22 2016 10:51
Basically you should just do meteor build and pass the correct —architecture
meteor help build should give you what you want
Himanshu Aggarwal
@haggarwal90
Jun 22 2016 11:52
@Brent: thanks for ur help.
Jeremy Shimko
@jshimko
Jun 22 2016 15:03

@haggarwal90 using Docker would be way less complicated than trying to build and run yourself. If you’re running Docker on your production machine, it’s literally 2 commands that you don’t need to even understand to use.
Assuming you’ve installed Docker, it’s just this from your Reaction directory...

docker build -t reaction .

and…

docker run -d \
  -p 80:80 \
  -e ROOT_URL="http://<your app url>" \
  -e MONGO_URL="mongodb://<your mongo url>" \
  -e REACTION_EMAIL=“your.email@example.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  reaction

That’s it. Production build deployed.

Harris
@haarris
Jun 22 2016 15:48
Hey everyone, really excited to use reactioncommerce (though I'm a newbie in webdev). Just wondering whether it's suitable yet for running an ecommerce website?
Spencer Norman
@spencern
Jun 22 2016 15:51
We’ve been running it in production for the last month and a half. https://getoutfitted.com
Valery Orloff
@valorloff
Jun 22 2016 16:21
@spencern great site ) :+1:
optimized for mobile?
Spencer Norman
@spencern
Jun 22 2016 16:25
not as well as I’d like
Valery Orloff
@valorloff
Jun 22 2016 16:29
this made with custom package? or you dug the core?
Spencer Norman
@spencern
Jun 22 2016 16:30
lots of custom packages and forked core a little bit
Valery Orloff
@valorloff
Jun 22 2016 16:34
a core update will not have problems?