Skip to content

Commit

Permalink
split server.hxml into multiple hxml
Browse files Browse the repository at this point in the history
And build each of them separately in docker, hoping compilation memory usage will be reduce since the AWS instance failed to build due to lack of memory...
  • Loading branch information
andyli committed Aug 5, 2016
1 parent b46c342 commit 962066e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ RUN mkdir -p /var/www/html/tmp
WORKDIR /src

RUN haxe server_legacy.hxml
RUN haxe server.hxml
RUN haxe server_website.hxml
RUN haxe server_tasks.hxml
RUN haxe server_api.hxml

EXPOSE 80
VOLUME ["/var/www/html/files", "/var/www/html/tmp"]
Expand Down
19 changes: 3 additions & 16 deletions server.hxml
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
# The new haxelib website (on the same 3.0 repo)
server_each.hxml
-main website.Server
-neko www/index.n

server_website.hxml
--next

server_each.hxml
-lib ufront-uftasks
-main website.Tasks
-neko www/tasks.n

server_tasks.hxml
--next

-cp src
-neko www/api/3.0/index.n
-main haxelib.server.Repo
-lib aws-sdk-neko:0.1.0
-dce no
-D haxelib_api
server_api.hxml
6 changes: 6 additions & 0 deletions server_api.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-cp src
-neko www/api/3.0/index.n
-main haxelib.server.Repo
-lib aws-sdk-neko:0.1.0
-dce no
-D haxelib_api
4 changes: 4 additions & 0 deletions server_tasks.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
server_each.hxml
-lib ufront-uftasks
-main website.Tasks
-neko www/tasks.n
3 changes: 3 additions & 0 deletions server_website.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
server_each.hxml
-main website.Server
-neko www/index.n

0 comments on commit 962066e

Please sign in to comment.