Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

執行環境 #32

Open
sih4sing5hong5 opened this issue Jun 26, 2016 · 12 comments
Open

執行環境 #32

sih4sing5hong5 opened this issue Jun 26, 2016 · 12 comments
Labels

Comments

@sih4sing5hong5
Copy link
Owner

目前上機

  • Jetty
  • Servlet

@MGdesigner 能列一下維基那邊有什麼限制嗎
檔名不能有漢字,要用servlet當入口
之前你提到的

這麼作,是因為Java Servlet的佈署規格,所有東西都要放在WEB-INF目錄,也就是現在的目錄規劃,font lib classes都在WEB-INF底下(lib要留意,jar不能再放子目錄,不然Java應用伺服器會找不到次目錄的jar檔)。
@MGdesigner
Copy link
Collaborator

MGdesigner commented Jun 26, 2016

最主要就市斤可能按照 servlet spec實作Servlet3.0

最低限度,使在tomcat上用運作正常即可

@MGdesigner
Copy link
Collaborator

我想兩邊共榮的方案,是把
1.servlet.jar 也加到 WEB-INF/lib
2.git上的發布版本,要有 build目錄 ,裡面有WEB-INF/font 的symbolink ,使得單機運作時 build/classes裡面的程式可以用一樣的相對路徑,找到font ,這樣可以維持兩邊的原碼code一致

@sih4sing5hong5
Copy link
Owner Author

sih4sing5hong5 commented Jun 26, 2016

  1. 檔名不能有漢字會造成wiki那也不能執行?
  2. servlet.jar有很大喲?不然可能要考慮gradle了
  3. 那個改個程式內的路徑應該就ok了。不要把build的扣放進來,應後要放build扣的指令 @@

@MGdesigner
Copy link
Collaborator

MGdesigner commented Jun 26, 2016

1.對,不只是wiki,是造成任何非漢語locale的server都會發生java執行時期錯誤,找不到class也找不到font
2.不大,所以我還是放回來好了。
3.我了解了,用ant或者另外一種方式(我忘記新是的那一種自動build工具,請跟我在說一次那個名字XD)來執行

我今天稍候會先push一個版本出來,最差,第三點我先用說明方式來講。

@MGdesigner
Copy link
Collaborator

Hi 我先push一個簡單的上來了,請你看看,先讓你可以work,我再改善方便度。

@sih4sing5hong5
Copy link
Owner Author

@MGdesigner 在維基的主機上./gradlew tomcatRunWar之前,要做什麼步驟呀?

@MGdesigner
Copy link
Collaborator

MGdesigner commented Jul 13, 2016

在維基主機上其實沒辦法直接./gradlew tomcatRunWar,因為他們的雲端grid裡面,啟動佈署程式到tomcat是用自己的script,目前我是用在本地端包好war,再scp進去佈署。

之後應該就是下 ./gradlew war 就好了。

@sih4sing5hong5
Copy link
Owner Author

既然是包成war,那麼為什麼檔名有漢字會影響佈署?

@MGdesigner
Copy link
Collaborator

因為部署進一個 java應用伺服器時,war會展開來。tomcat的行為是解壓縮展開在webapp底下

@sih4sing5hong5
Copy link
Owner Author

聽起來是自動的,既然是自動的,會因為漢字跑掉喲?

@MGdesigner
Copy link
Collaborator

我覺得是英文locale的server在tomcat佈署的過程中,解壓縮展開時,轉碼出了問題。

@sih4sing5hong5
Copy link
Owner Author

可以把錯誤的log貼上來看嗎?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants