Permalink
Browse files

start scripts are now more verbose

  • Loading branch information...
1 parent 0349757 commit 09f2c47af4600bff406625388593e9e17b4aca3e Michal Ptaszek committed Oct 28, 2009
Showing with 8 additions and 8 deletions.
  1. +4 −4 bin/compile.erl
  2. +4 −2 bin/start.erl
  3. +0 −2 lib/eptic-1.4/priv/yaws.conf
View
@@ -120,14 +120,14 @@ create_rel_file(RelVsn, Apps, Server) ->
end.
create_boot_file(RelVsn) ->
- systools:make_script("start", [{path, ["releases/" ++ RelVsn, "lib/*/ebin"]},
- {outdir, "releases/" ++ RelVsn}, silent]),
+ {ok, _, _} = systools:make_script("start", [{path, ["releases/" ++ RelVsn, "lib/*/ebin"]},
+ {outdir, "releases/" ++ RelVsn}, silent]),
confirm_created("releases/" ++ RelVsn ++ "/start.script"),
confirm_created("releases/" ++ RelVsn ++ "/start.boot"),
file:copy("releases/" ++ RelVsn ++ "/start.rel", "start.rel"),
- systools:make_tar("start",[{path, ["releases/" ++ RelVsn]},
- {outdir, "releases/" ++ RelVsn}, silent]),
+ {ok, _, _} = systools:make_tar("start",[{path, ["releases/" ++ RelVsn]},
+ {outdir, "releases/" ++ RelVsn}, silent]),
file:delete("start.rel"),
erl_tar:extract("releases/" ++ RelVsn ++ "/start.tar.gz", [compressed]).
View
@@ -505,12 +505,14 @@ get_apps_for_release(Server) ->
end, application:loaded_applications()).
generate_boot_file() ->
- systools:make_script("start", [{path, ["releases/0.1", "lib/*/ebin"]}, {outdir, "releases/0.1/"}, silent]),
+ systools:make_script("start", [{path, ["releases/0.1", "lib/*/ebin"]},
+ {outdir, "releases/0.1/"}, silent]),
confirm_created("releases/0.1/start.script"),
confirm_created("releases/0.1/start.boot"),
file:copy("releases/0.1/start.rel", "start.rel"),
- systools:make_tar("start",[{path, ["releases/0.1"]}, {outdir, "releases/0.1/"}, {dirs, [include]}, silent]),
+ systools:make_tar("start",[{path, ["releases/0.1"]}, {outdir, "releases/0.1/"},
+ {dirs, [include, src]}, silent]),
file:delete("start.rel"),
erl_tar:extract("releases/0.1/start.tar.gz", [keep_old_files, compressed]).
@@ -95,8 +95,6 @@ pick_first_virthost_on_nomatch = true
use_fdsrv = false
-id = erlangweb
-
# end then a set of virtual servers
# First two virthosted servers on the same IP (0.0.0.0)
# in this case, but an explicit IP can be given as well

0 comments on commit 09f2c47

Please sign in to comment.