Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 86482200B98 for ; Mon, 3 Oct 2016 23:45:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85086160ADC; Mon, 3 Oct 2016 21:45:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC924160ACD for ; Mon, 3 Oct 2016 23:45:30 +0200 (CEST) Received: (qmail 8951 invoked by uid 500); 3 Oct 2016 21:45:29 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 8938 invoked by uid 99); 3 Oct 2016 21:45:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 21:45:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 802F8180361 for ; Mon, 3 Oct 2016 21:45:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.519 X-Spam-Level: X-Spam-Status: No, score=-4.519 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 0YCZ5bzmukob for ; Mon, 3 Oct 2016 21:45:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 985B95F2ED for ; Mon, 3 Oct 2016 21:45:26 +0000 (UTC) Received: (qmail 8861 invoked by uid 99); 3 Oct 2016 21:45:25 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 21:45:25 +0000 Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 9B0C61A0118 for ; Mon, 3 Oct 2016 21:45:25 +0000 (UTC) Received: by mail-it0-f46.google.com with SMTP id j69so132382615itb.0 for ; Mon, 03 Oct 2016 14:45:25 -0700 (PDT) X-Gm-Message-State: AA6/9RlBRZWPegUaA4TF0rUkg8F5MBClrUHwVEdY2+VORNVOpMHfRdY4KUy03/gBlU9yT+8FDL36EPMgbRdEjA== X-Received: by 10.36.61.6 with SMTP id n6mr876137itn.75.1475531124807; Mon, 03 Oct 2016 14:45:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.81.203 with HTTP; Mon, 3 Oct 2016 14:45:04 -0700 (PDT) In-Reply-To: References: From: Donald Szeto Date: Mon, 3 Oct 2016 14:45:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Running predictionIO on a web server other than localhost To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1143dd408ca035053dfcdc1b archived-at: Mon, 03 Oct 2016 21:45:31 -0000 --001a1143dd408ca035053dfcdc1b Content-Type: text/plain; charset=UTF-8 Hi Jenna, You probably want to have a reverse proxy in front of your app (localhost:3000) so that it is exposed to the Internet via standard ports (80 for HTTP or 443 for HTTPS). Your app can communicate to the event server and engine over localhost. They don't need to be exposed to the Internet. Your app should be using one of PredictionIO SDKs to interact with the event server and engine. Regards, Donald On Sun, Oct 2, 2016 at 3:07 PM, Jenna Kwon wrote: > Hello! > > I am a beginner so please excuse me if my question is rudimentary. > I've followed a demo for Tapster Comics Recommendation ( > http://predictionio.incubator.apache.org/demo/tapster/) and have a good > understanding of deploying the engine, app and event server on localhost. > > My app ran on localhost:3000, engine ran on localhost:8000, and > eventserver ran on localhost:7000. > > I would like to now deploy these on a web server. The "app" would be a > specific website. How would I hook up and deploy eventserver and > predictionIO engine to gather information from that specific website? > > Would it just be a matter of changing environmental variables in > pio-env.sh (in predictionIO installation directory) as well as those in > app's directory? For example, would I substitute "localhost" with a web > server? > > Thank you! > > Best Regards, > Jenna Kwon > > > -- > Jenna Kwon > B.S. Computer Science '17| Georgia Institute of Technology > Denning Technology and Management Scholar > GT Tennis Club | GT Trailblazers > www.jennakwon.com > (541)908-2963 > --001a1143dd408ca035053dfcdc1b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jenna,

You probably want to have a r= everse proxy in front of your app (localhost:3000) so that it is exposed to= the Internet via standard ports (80 for HTTP or 443 for HTTPS). Your app c= an communicate to the event server and engine over localhost. They don'= t need to be exposed to the Internet. Your app should be using one of Predi= ctionIO SDKs to interact with the event server and engine.

Regards,
Donald
On Sun, Oct 2, 2016 at 3:07 PM, Jenna Kwon <jinkwon06@gmail.com> wrote:
Hello!

I am a beginner so please excu= se me if my question is rudimentary.
I've followed a demo for= Tapster Comics Recommendation (http://predictionio.incubato= r.apache.org/demo/tapster/) and have a good understanding of deplo= ying the engine, app and event server on localhost.

My app ran on localhost:3000, engine ran on localhost:8000, and eventserv= er ran on localhost:7000.

I would like to now depl= oy these on a web server. The "app" would be a specific website. = How would I hook up and deploy eventserver and predictionIO engine to gathe= r information from that specific website?=C2=A0

Wo= uld it just be a matter of changing environmental variables in pio-env.sh (= in predictionIO installation directory) as well as those in app's direc= tory? For example, would I substitute "localhost" with a web serv= er?=C2=A0

Thank you!

Best= Regards,
Jenna Kwon=C2=A0


--
Jenn= a Kwon
B.S. Computer Science '= ;17| Georgia Institute of Technology=C2=A0
Denning Technology and Management Scholar=C2=A0
GT Tennis Club | GT Trailblazers

--001a1143dd408ca035053dfcdc1b--