2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/project/PreparePortalHook.scala
Emerle, Ryan 02d702f461
Performance tuning
- Add `getGroupsAbridged` which returns a subset of group data for dropdowns and other places where all groups are listed
- Remove unnecessary checks for `canSeeGroup` in `groups.scala.html` since all users can see all groups
- Move `ZoneController` initialization in `manageZone.scala.html` to higher level to avoid waiting for groups to load when expanding the select box
- Add `PreparePortalHook` to automatically run `prepare-portal.sh` when `project porta; run` is executed
2022-05-19 14:41:11 -04:00

15 lines
321 B
Scala

import scala.sys.process.Process
import play.sbt.PlayRunHook
import sbt.File
object PreparePortalHook {
def apply(base: File): PlayRunHook = {
object GruntProcess extends PlayRunHook {
override def beforeStarted(): Unit = {
Process("./prepare-portal.sh", base).!
}
}
GruntProcess
}
}