Skip to content

Instantly share code, notes, and snippets.

@nazoking
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazoking/78d05bb9a5674ef687f3 to your computer and use it in GitHub Desktop.
Save nazoking/78d05bb9a5674ef687f3 to your computer and use it in GitHub Desktop.
play2.3 で start スクリプトが消えたので対処
// ↓ start を server/start に保存して build.sbt で
mappings in com.typesafe.sbt.SbtNativePackager.Universal += (file("server/start") , "start")
#!/bin/sh
ORIGIN=$(dirname $(readlink -f $(which $0)))
BASE=$(dirname $(which $0))
# RUNNING_PID の出来る場所が、シンボリックリンクをたどってしまう。startスクリプトの呼ばれた位置にできるように変更
$ORIGIN/bin/facetouch "$@" -Dpidfile.path=${BASE}/RUNNING_PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment