From 71b1c57aad075b26d7be1e4b80d5d4fa19746486 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 24 May 2014 01:21:26 -0700 Subject: Adding serverprod target and import tool. serverprod starts the frontend locally but points it to the prod dynamodb. The import tool loads data into dynamodb. Each record has a hash key and one or more attribute/value pairs. Records are separated by an empty line. The first line of the record is the hash key. Each subsequent line is an attribute key, followed by a space, followed by the value. --- src/com/p4square/grow/GrowProcessComponent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/com/p4square/grow/GrowProcessComponent.java') diff --git a/src/com/p4square/grow/GrowProcessComponent.java b/src/com/p4square/grow/GrowProcessComponent.java index 7d0938e..9a7de6f 100644 --- a/src/com/p4square/grow/GrowProcessComponent.java +++ b/src/com/p4square/grow/GrowProcessComponent.java @@ -92,10 +92,15 @@ public class GrowProcessComponent extends Component { // Load an optional config file from the first argument. Config config = new Config(); config.setDomain("dev"); - if (args.length == 1) { + if (args.length >= 1) { config.updateConfig(args[0]); } + // Override domain + if (args.length == 2) { + config.setDomain(args[1]); + } + // Start the HTTP Server final GrowProcessComponent component = new GrowProcessComponent(config); component.getServers().add(Protocol.HTTP, 8085); -- cgit v1.2.3