You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by Ethan Jewett <es...@gmail.com> on 2011/10/14 18:09:40 UTC
To run ESME on Heroku ...
...
1. Sign up for a Heroku account at http://www.heroku.com
2. Do local workstation setup:
http://devcenter.heroku.com/articles/scala#local_workstation_setup
3. mkdir esme
4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/server esme
5. cd esme
6. rm pom.xml src/main/resources/props/default.props
7. mv
src/main/resources/props/heroku.props src/main/resources/props/default.props
7. Follow the instructions here:
http://devcenter.heroku.com/articles/scala#store_your_app_in_git
See it in action here (temporarily):
http://stormy-sunset-4252.herokuapp.com/
Cheers,
Ethan
Re: Search behaviors?
Posted by Ethan Jewett <es...@gmail.com>.
Hi Jack,
When I test on http://esmecloudserverapache.dickhirsch.staxapps.net/ using
the messages "Hello world.", "Hello there", and "hello", and then search for
"hello", I see all three messages. (Though it does appear that search for
old messages is borked, so it seems something killed off the index
persistence across restarts on Stax again.)
By default, our indexes are persisted on the file system (since you are
running on Derby for the database, I am assuming you are using the default
setup). So if you are losing those indexes between restarts for some reason,
then you will not be able to search for messages posted before the last
restart. Is it possible that this is what is happening?
Cheers,
Ethan
On Thu, Oct 20, 2011 at 6:58 AM, Jack Park <ja...@topicquests.org> wrote:
> Hi Dick,
>
> I see nothing that suggests any issues in any of the compass prop files,
> though one of them, specific to MySQL prompts this: should it matter that
> I'm running under Derby in my trials?
>
> Thanks
> Jack
>
>
> On 10/19/2011 8:30 PM, Richard Hirsch wrote:
>
>> Hi Jack,
>>
>> The search in ESME is compass-based, so we would probably have to look
>> at the compass configuration to fine-tune it. Have you seen the
>> compass properties file in resources/props? That might be a first
>> place to start.
>>
>> Regards,
>>
>> Dick
>>
>>
>>
>> On Thu, Oct 20, 2011 at 12:50 AM, Jack Park<ja...@topicquests.org>
>> wrote:
>>
>>> I have several messages with "hello" in one form or another, e.g. Hello
>>> world, and hello there
>>>
>>> When I type hello into the search bar, it brings up just the message with
>>> Hello world.
>>>
>>> When I type world in the search bar, it brings up a message with "worlds"
>>> in
>>> it, but not the one with Hello world
>>>
>>> What do we know about the stability and reliability of search? Are there
>>> specific heuristics, a command line to clear it and cause it to re-index?
>>>
>>> Thanks in advance
>>> Jack
>>>
>>>
Re: Search behaviors?
Posted by Jack Park <ja...@topicquests.org>.
Hi Dick,
I see nothing that suggests any issues in any of the compass prop files,
though one of them, specific to MySQL prompts this: should it matter
that I'm running under Derby in my trials?
Thanks
Jack
On 10/19/2011 8:30 PM, Richard Hirsch wrote:
> Hi Jack,
>
> The search in ESME is compass-based, so we would probably have to look
> at the compass configuration to fine-tune it. Have you seen the
> compass properties file in resources/props? That might be a first
> place to start.
>
> Regards,
>
> Dick
>
>
>
> On Thu, Oct 20, 2011 at 12:50 AM, Jack Park<ja...@topicquests.org> wrote:
>> I have several messages with "hello" in one form or another, e.g. Hello
>> world, and hello there
>>
>> When I type hello into the search bar, it brings up just the message with
>> Hello world.
>>
>> When I type world in the search bar, it brings up a message with "worlds" in
>> it, but not the one with Hello world
>>
>> What do we know about the stability and reliability of search? Are there
>> specific heuristics, a command line to clear it and cause it to re-index?
>>
>> Thanks in advance
>> Jack
>>
Re: Search behaviors?
Posted by Richard Hirsch <hi...@gmail.com>.
Hi Jack,
The search in ESME is compass-based, so we would probably have to look
at the compass configuration to fine-tune it. Have you seen the
compass properties file in resources/props? That might be a first
place to start.
Regards,
Dick
On Thu, Oct 20, 2011 at 12:50 AM, Jack Park <ja...@topicquests.org> wrote:
> I have several messages with "hello" in one form or another, e.g. Hello
> world, and hello there
>
> When I type hello into the search bar, it brings up just the message with
> Hello world.
>
> When I type world in the search bar, it brings up a message with "worlds" in
> it, but not the one with Hello world
>
> What do we know about the stability and reliability of search? Are there
> specific heuristics, a command line to clear it and cause it to re-index?
>
> Thanks in advance
> Jack
>
Search behaviors?
Posted by Jack Park <ja...@topicquests.org>.
I have several messages with "hello" in one form or another, e.g. Hello
world, and hello there
When I type hello into the search bar, it brings up just the message
with Hello world.
When I type world in the search bar, it brings up a message with
"worlds" in it, but not the one with Hello world
What do we know about the stability and reliability of search? Are there
specific heuristics, a command line to clear it and cause it to re-index?
Thanks in advance
Jack
Re: To run ESME on Heroku ...
Posted by Ethan Jewett <es...@gmail.com>.
Thanks Vladimir :-)
Just so everyone is aware, I'm pretty sure that persistence still isn't
working. I'll try to put in some logging and get it working tonight.
Ethan
On Sunday, October 16, 2011, Vladimir Ivanov <le...@gmail.com> wrote:
> Great work Ethan!
>
> It's very interesting to see ESME deployed on Heroku cloud platform.
Thanks
> for the detailed instructions.
>
> Vladimir
>
> 2011/10/16 Ethan Jewett <es...@gmail.com>
>
>> No, it's not, is it? :-)
>>
>> I think I've got it using Heroku's shared PostgreSQL database for
>> persistence now (for the database, not for the Compass/Lucene search).
The
>> new URL is http://deep-window-6784.herokuapp.com/
>>
>> The setup instructions are unchanged.
>>
>> I've created a user and I'll check back sometime during the week to see
if
>> my user still exists :-)
>>
>> Cheers,
>> Ethan
>>
>> On Sun, Oct 16, 2011 at 10:38 AM, Richard Hirsch <hirsch.dick@gmail.com
>> >wrote:
>>
>> > Running ESME in a PaaS is never quite as easy as one expects but it
>> > always provides an excellent chance to learn about such platforms.
>> >
>> > Good luck and please keep us informed of your progress. I'll update
>> > the page on esme.apache.org appropriately.
>> >
>> > D.
>> >
>> > On Sun, Oct 16, 2011 at 9:25 AM, Ethan Jewett <es...@gmail.com>
>> wrote:
>> > > Hmmm, clearly I need to do some work on the persistence situation.
>> Seems
>> > it
>> > > is using the embedded Derby DB, but Heroku shuts down the system when
>> > it's
>> > > not in use, so data is lost.
>> > >
>> > > Time to start researching Heroku database connections :-)
>> > >
>> > > Ethan
>> > >
>> > > On Saturday, October 15, 2011, Richard Hirsch <hi...@gmail.com>
>> > wrote:
>> > >> Added to site: http://esme.apache.org/docs/install/heroku.html
>> > >>
>> > >> On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <
>> hirsch.dick@gmail.com>
>> > > wrote:
>> > >>> Nice - I'm the first user.
>> > >>>
>> > >>> R.
>> > >>>
>> > >>> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com>
>> > wrote:
>> > >>>> ...
>> > >>>>
>> > >>>> 1. Sign up for a Heroku account at http://www.heroku.com
>> > >>>> 2. Do local workstation setup:
>> > >>>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
>> > >>>> 3. mkdir esme
>> > >>>> 4. svn checkout
>> http://svn.apache.org/repos/asf/esme/trunk/serveresme
>> > >>>> 5. cd esme
>> > >>>> 6. rm pom.xml src/main/resources/props/default.props
>> > >>>> 7. mv
>> > >>>> src/main/resources/props/heroku.props
>> > > src/main/resources/props/default.props
>> > >>>> 7. Follow the instructions here:
>> > >>>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
>> > >>>>
>> > >>>> See it in action here (temporarily):
>> > >>>> http://stormy-sunset-4252.herokuapp.com/
>> > >>>>
>> > >>>> Cheers,
>> > >>>> Ethan
>> > >>>>
>> > >>>
>> > >>
>> > >
>> >
>>
>
>
>
> --
> Best Regards,
> Vladimir Ivanov
>
Re: To run ESME on Heroku ...
Posted by Vladimir Ivanov <le...@gmail.com>.
Great work Ethan!
It's very interesting to see ESME deployed on Heroku cloud platform. Thanks
for the detailed instructions.
Vladimir
2011/10/16 Ethan Jewett <es...@gmail.com>
> No, it's not, is it? :-)
>
> I think I've got it using Heroku's shared PostgreSQL database for
> persistence now (for the database, not for the Compass/Lucene search). The
> new URL is http://deep-window-6784.herokuapp.com/
>
> The setup instructions are unchanged.
>
> I've created a user and I'll check back sometime during the week to see if
> my user still exists :-)
>
> Cheers,
> Ethan
>
> On Sun, Oct 16, 2011 at 10:38 AM, Richard Hirsch <hirsch.dick@gmail.com
> >wrote:
>
> > Running ESME in a PaaS is never quite as easy as one expects but it
> > always provides an excellent chance to learn about such platforms.
> >
> > Good luck and please keep us informed of your progress. I'll update
> > the page on esme.apache.org appropriately.
> >
> > D.
> >
> > On Sun, Oct 16, 2011 at 9:25 AM, Ethan Jewett <es...@gmail.com>
> wrote:
> > > Hmmm, clearly I need to do some work on the persistence situation.
> Seems
> > it
> > > is using the embedded Derby DB, but Heroku shuts down the system when
> > it's
> > > not in use, so data is lost.
> > >
> > > Time to start researching Heroku database connections :-)
> > >
> > > Ethan
> > >
> > > On Saturday, October 15, 2011, Richard Hirsch <hi...@gmail.com>
> > wrote:
> > >> Added to site: http://esme.apache.org/docs/install/heroku.html
> > >>
> > >> On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <
> hirsch.dick@gmail.com>
> > > wrote:
> > >>> Nice - I'm the first user.
> > >>>
> > >>> R.
> > >>>
> > >>> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com>
> > wrote:
> > >>>> ...
> > >>>>
> > >>>> 1. Sign up for a Heroku account at http://www.heroku.com
> > >>>> 2. Do local workstation setup:
> > >>>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
> > >>>> 3. mkdir esme
> > >>>> 4. svn checkout
> http://svn.apache.org/repos/asf/esme/trunk/serveresme
> > >>>> 5. cd esme
> > >>>> 6. rm pom.xml src/main/resources/props/default.props
> > >>>> 7. mv
> > >>>> src/main/resources/props/heroku.props
> > > src/main/resources/props/default.props
> > >>>> 7. Follow the instructions here:
> > >>>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
> > >>>>
> > >>>> See it in action here (temporarily):
> > >>>> http://stormy-sunset-4252.herokuapp.com/
> > >>>>
> > >>>> Cheers,
> > >>>> Ethan
> > >>>>
> > >>>
> > >>
> > >
> >
>
--
Best Regards,
Vladimir Ivanov
Re: To run ESME on Heroku ...
Posted by Ethan Jewett <es...@gmail.com>.
No, it's not, is it? :-)
I think I've got it using Heroku's shared PostgreSQL database for
persistence now (for the database, not for the Compass/Lucene search). The
new URL is http://deep-window-6784.herokuapp.com/
The setup instructions are unchanged.
I've created a user and I'll check back sometime during the week to see if
my user still exists :-)
Cheers,
Ethan
On Sun, Oct 16, 2011 at 10:38 AM, Richard Hirsch <hi...@gmail.com>wrote:
> Running ESME in a PaaS is never quite as easy as one expects but it
> always provides an excellent chance to learn about such platforms.
>
> Good luck and please keep us informed of your progress. I'll update
> the page on esme.apache.org appropriately.
>
> D.
>
> On Sun, Oct 16, 2011 at 9:25 AM, Ethan Jewett <es...@gmail.com> wrote:
> > Hmmm, clearly I need to do some work on the persistence situation. Seems
> it
> > is using the embedded Derby DB, but Heroku shuts down the system when
> it's
> > not in use, so data is lost.
> >
> > Time to start researching Heroku database connections :-)
> >
> > Ethan
> >
> > On Saturday, October 15, 2011, Richard Hirsch <hi...@gmail.com>
> wrote:
> >> Added to site: http://esme.apache.org/docs/install/heroku.html
> >>
> >> On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <hi...@gmail.com>
> > wrote:
> >>> Nice - I'm the first user.
> >>>
> >>> R.
> >>>
> >>> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com>
> wrote:
> >>>> ...
> >>>>
> >>>> 1. Sign up for a Heroku account at http://www.heroku.com
> >>>> 2. Do local workstation setup:
> >>>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
> >>>> 3. mkdir esme
> >>>> 4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/serveresme
> >>>> 5. cd esme
> >>>> 6. rm pom.xml src/main/resources/props/default.props
> >>>> 7. mv
> >>>> src/main/resources/props/heroku.props
> > src/main/resources/props/default.props
> >>>> 7. Follow the instructions here:
> >>>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
> >>>>
> >>>> See it in action here (temporarily):
> >>>> http://stormy-sunset-4252.herokuapp.com/
> >>>>
> >>>> Cheers,
> >>>> Ethan
> >>>>
> >>>
> >>
> >
>
Re: To run ESME on Heroku ...
Posted by Richard Hirsch <hi...@gmail.com>.
Running ESME in a PaaS is never quite as easy as one expects but it
always provides an excellent chance to learn about such platforms.
Good luck and please keep us informed of your progress. I'll update
the page on esme.apache.org appropriately.
D.
On Sun, Oct 16, 2011 at 9:25 AM, Ethan Jewett <es...@gmail.com> wrote:
> Hmmm, clearly I need to do some work on the persistence situation. Seems it
> is using the embedded Derby DB, but Heroku shuts down the system when it's
> not in use, so data is lost.
>
> Time to start researching Heroku database connections :-)
>
> Ethan
>
> On Saturday, October 15, 2011, Richard Hirsch <hi...@gmail.com> wrote:
>> Added to site: http://esme.apache.org/docs/install/heroku.html
>>
>> On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <hi...@gmail.com>
> wrote:
>>> Nice - I'm the first user.
>>>
>>> R.
>>>
>>> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com> wrote:
>>>> ...
>>>>
>>>> 1. Sign up for a Heroku account at http://www.heroku.com
>>>> 2. Do local workstation setup:
>>>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
>>>> 3. mkdir esme
>>>> 4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/server esme
>>>> 5. cd esme
>>>> 6. rm pom.xml src/main/resources/props/default.props
>>>> 7. mv
>>>> src/main/resources/props/heroku.props
> src/main/resources/props/default.props
>>>> 7. Follow the instructions here:
>>>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
>>>>
>>>> See it in action here (temporarily):
>>>> http://stormy-sunset-4252.herokuapp.com/
>>>>
>>>> Cheers,
>>>> Ethan
>>>>
>>>
>>
>
Re: To run ESME on Heroku ...
Posted by Ethan Jewett <es...@gmail.com>.
Hmmm, clearly I need to do some work on the persistence situation. Seems it
is using the embedded Derby DB, but Heroku shuts down the system when it's
not in use, so data is lost.
Time to start researching Heroku database connections :-)
Ethan
On Saturday, October 15, 2011, Richard Hirsch <hi...@gmail.com> wrote:
> Added to site: http://esme.apache.org/docs/install/heroku.html
>
> On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <hi...@gmail.com>
wrote:
>> Nice - I'm the first user.
>>
>> R.
>>
>> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com> wrote:
>>> ...
>>>
>>> 1. Sign up for a Heroku account at http://www.heroku.com
>>> 2. Do local workstation setup:
>>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
>>> 3. mkdir esme
>>> 4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/server esme
>>> 5. cd esme
>>> 6. rm pom.xml src/main/resources/props/default.props
>>> 7. mv
>>> src/main/resources/props/heroku.props
src/main/resources/props/default.props
>>> 7. Follow the instructions here:
>>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
>>>
>>> See it in action here (temporarily):
>>> http://stormy-sunset-4252.herokuapp.com/
>>>
>>> Cheers,
>>> Ethan
>>>
>>
>
Re: To run ESME on Heroku ...
Posted by Richard Hirsch <hi...@gmail.com>.
Added to site: http://esme.apache.org/docs/install/heroku.html
On Sat, Oct 15, 2011 at 9:28 AM, Richard Hirsch <hi...@gmail.com> wrote:
> Nice - I'm the first user.
>
> R.
>
> On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com> wrote:
>> ...
>>
>> 1. Sign up for a Heroku account at http://www.heroku.com
>> 2. Do local workstation setup:
>> http://devcenter.heroku.com/articles/scala#local_workstation_setup
>> 3. mkdir esme
>> 4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/server esme
>> 5. cd esme
>> 6. rm pom.xml src/main/resources/props/default.props
>> 7. mv
>> src/main/resources/props/heroku.props src/main/resources/props/default.props
>> 7. Follow the instructions here:
>> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
>>
>> See it in action here (temporarily):
>> http://stormy-sunset-4252.herokuapp.com/
>>
>> Cheers,
>> Ethan
>>
>
Re: To run ESME on Heroku ...
Posted by Richard Hirsch <hi...@gmail.com>.
Nice - I'm the first user.
R.
On Fri, Oct 14, 2011 at 6:09 PM, Ethan Jewett <es...@gmail.com> wrote:
> ...
>
> 1. Sign up for a Heroku account at http://www.heroku.com
> 2. Do local workstation setup:
> http://devcenter.heroku.com/articles/scala#local_workstation_setup
> 3. mkdir esme
> 4. svn checkout http://svn.apache.org/repos/asf/esme/trunk/server esme
> 5. cd esme
> 6. rm pom.xml src/main/resources/props/default.props
> 7. mv
> src/main/resources/props/heroku.props src/main/resources/props/default.props
> 7. Follow the instructions here:
> http://devcenter.heroku.com/articles/scala#store_your_app_in_git
>
> See it in action here (temporarily):
> http://stormy-sunset-4252.herokuapp.com/
>
> Cheers,
> Ethan
>