Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jvmopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-Xms1024M
-Xmx2048M
-Xss1M
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This can be achieved by running:

- Setup Amiable configuration.
A conf file is expected from Amiable.
The location of that file (as shown in `./sbt`) is: `$HOME/.gu/amiable.local.conf`
The location of that file is: `$HOME/.gu/amiable.local.conf`
That file must contain all the configuration values that exist in `application.conf`

For example the following values must be set:
Expand All @@ -27,7 +27,10 @@ This can be achieved by running:
In order to setup the auth parameters (eg. `serviceAccountCertPath`),
please consult someone from the Dev Tools team.

- `./sbt run` open your browser at `https://amiable.local.dev-gutools.co.uk`!
- `sbt run` open your browser at `https://amiable.local.dev-gutools.co.uk`!

### Debugging
To attach a debugger, use sbt's built-in flag: `sbt -jvm-debug 1056 run`. Then connect your IDE's remote debugger to port 1056.

### Common problems
- If when running main you can an error "Could not find a suitable constructor..." it's something wrong with your
Expand Down
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Universal / javaOptions ++= Seq(

Test / javaOptions += "-Dconfig.file=conf/application.test.conf"

// For local development: load config from ~/.gu/amiable.local.conf.
// Uses Runtime scope so Play's dev server picks it up (same pattern as guardian/frontend).
Runtime / javaOptions += s"-Dconfig.file=${System.getProperty("user.home")}/.gu/amiable.local.conf"

routesGenerator := InjectedRoutesGenerator

scalacOptions := Seq(
Expand Down
17 changes: 0 additions & 17 deletions sbt

This file was deleted.

Binary file removed sbt-launch.jar
Binary file not shown.