Skip to content

Commit

Permalink
gs-ir: WatchApp deploy OcrEngineHolderVerticle
Browse files Browse the repository at this point in the history
  • Loading branch information
plassalas committed Sep 12, 2017
1 parent 2ab55d1 commit d08ea56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions gs-ir/src/main/java/org/genericsystem/ir/app/WatchApp.java
Expand Up @@ -32,25 +32,24 @@
*
* @author Pierrik Lassalas
*/
@SuppressWarnings("unused")
@DependsOnModel({ Role.class, User.class, UserRole.class, Doc.class, RefreshTimestamp.class, DocTimestamp.class, DocFilename.class, DocClass.class, ZoneGeneric.class, ZoneText.class, ZoneTimestamp.class, ImgFilter.class, LevDistance.class,
MeanLevenshtein.class, Score.class })
@Children({ HomePage.class, FiltersStatisticsPage.class })
public class WatchApp extends RootTagImpl {

private static final String gsPath = "/gs-cv_model3";

public static void main(String[] mainArgs) {
ApplicationServer server = ApplicationServer.startSimpleGenericApp(mainArgs, WatchApp.class, gsPath);
Root root = server.getRoots().get(System.getenv("HOME") + "/genericsystem/" + gsPath);
// deployVerticles(root);
}

@Override
public void init() {
createNewInitializedProperty(PageSwitcher.PAGE, c -> PageSwitcher.HOME_PAGE);
}

public static void main(String[] mainArgs) {
ApplicationServer server = ApplicationServer.startSimpleGenericApp(mainArgs, WatchApp.class, gsPath);
Root root = server.getRoots().get(System.getenv("HOME") + "/genericsystem/" + gsPath);
deployVerticles(root);
}

private static void deployVerticles(Root root) {
OcrEngineHolderVerticle deployer = new OcrEngineHolderVerticle(root);
deployer.doDeploy();
Expand Down

0 comments on commit d08ea56

Please sign in to comment.