Skip to content

Commit

Permalink
clean up runhook
Browse files Browse the repository at this point in the history
  • Loading branch information
stagegatemedia committed Jul 18, 2014
1 parent 8c10c32 commit 3951d7a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
object SimplePlayRunHook {
object NPMPlayRunHook {
import java.net.InetSocketAddress
import play.PlayRunHook
import sbt._
Expand All @@ -8,20 +8,17 @@ object SimplePlayRunHook {
new PlayRunHook {
override def beforeStarted(): Unit = {
val cmdNpm = Seq("sh", "-c", "npm install")

(cmdNpm #|| "echo npm is missing and needed for local development to fetch the nodejs and bower dependencies. For install look here https://github.com/npm/npm. Perform npm task manual from your command line. Ignore it during herku deployment npm install will be performed fro the nodejs buildpack." !)
/*val cmdCoffee = Seq("./node_modules/coffee-script/bin/coffee", "-c", "-o", "public/js/bankapp/coffee", "public/js/bankapp/coffee")
(cmdCoffee #|| "echo npm is missing and needed for local development to fetch the nodejs and bower dependencies. For install look here https://github.com/npm/npm. Perform npm task manual from your command line. Ignore it during herku deployment npm install will be performed fro the nodejs buildpack." !)*/
println(s"++++ compiled coffee script")
println(s"++++ perform npm install when npm command can be found")
}

override def afterStarted(address: InetSocketAddress): Unit = {
println(s"++++ simplePlayRunHook.afterStarted: $address")
}

override def afterStopped(): Unit = {
println("++++ simplePlayRunHook.afterStopped")
}
}
}
}
}

0 comments on commit 3951d7a

Please sign in to comment.