on centos (and like centos) tmp is managed by OS, sometime it corrupt jetty

Description

when you deploy idempiere (or jetty app) to centos.
have some runtime resource go to /tmp folder. See more: Temporary Directories

if long time you don't touch your app, file on "Temporary Directories" can be delete by centos. see more:Centos tmp

so your app will go to break.
it happen here on motive demo server. i install mobile plugin to test long time ago.
now when i go back it said miss some resource file (javascipt, css)

my solution add work folder under jetty home. so temp is manage by jetty not OS.

refer more from:
jetty home and jetty base
Jetty lookup temp folder

Environment

None

Activity

Show:
Carlos Ruiz
August 1, 2017, 8:26 AM

, reviewing the patch I think there is no change on org.adempiere.server-feature/idempiere-server.sh
the line deleted and the line added looks the same

on the org.adempiere.server-feature/jettyhome/work/.dummy
usually the convention we use for mercurial is to create an empty file called .hgignore
org.adempiere.server-feature/jettyhome/work/.hgignore

Hiep Lq
August 1, 2017, 9:10 AM

i add new text "-Djetty.base=$BASE/jettyhome"
text so long so isn't easy to figure it out

.hgignore is good practise, thanks

Carlos Ruiz
August 1, 2017, 9:19 AM

Thanks - I see it now

Assignee

Carlos Ruiz

Reporter

Hiep Lq

Labels

None

Tested By

None

Priority

Major
Configure