diff options
| -rw-r--r-- | datomic-pro-1.0.7469/create-db.bsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/datomic-pro-1.0.7469/create-db.bsh b/datomic-pro-1.0.7469/create-db.bsh index e70851b..bd4b44c 100644 --- a/datomic-pro-1.0.7469/create-db.bsh +++ b/datomic-pro-1.0.7469/create-db.bsh @@ -2,7 +2,7 @@ db_name = System.getenv("DATOMIC_DB"); if (db_name == null || db_name.isEmpty()) { db_name = "app"; } -db_uri = "datomic:sql://" + db_name + "?jdbc:sqlite:/usr/storage/sqlite.db"; +db_uri = "datomic:sql://" + db_name + "?jdbc:sqlite:storage.db"; for (int i = 0; i < 20; i++) { Thread.sleep(3000); System.out.println("Testing connection to database '" + db_name + "'..."); @@ -11,15 +11,15 @@ for (int i = 0; i < 20; i++) { System.out.println("Created database '" + db_name + "'"); } try { - new File("/usr/datomic-pro/db_ready").createNewFile(); + new File("db_ready").createNewFile(); } catch (Exception e) { - System.out.println("Could not create file /usr/datomic-pro/db_ready: " + e.getMessage()); + System.out.println("Could not create file db_ready: " + e.getMessage()); } - System.out.println("Connect using DB URI datomic:sql://" + db_name + "?jdbc:sqlite:<LOCAL/PATH/TO/sqlite.db>"); + System.out.println("Connect using DB URI datomic:sql://" + db_name + "?jdbc:sqlite:storage.db>"); System.out.println(" e.g. datomic:sql://app?jdbc:sqlite:./storage/sqlite.db if you mounted ./storage"); System.exit(0); } catch (Exception e) { - // System.out.println(e.getMessage()); + System.out.println(e.getMessage()); } } System.out.println("WARNING: Could not create or connect to database " + db_name + " after 10s."); |
