소스 검색

Do not start the application when using `mix run`

theenglishway (time) 4 년 전
부모
커밋
620740c92d
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      priv/build/cross_build.sh
  2. 1 1
      priv/build/get_latest_rel_dir.sh

+ 2 - 2
priv/build/cross_build.sh

@@ -2,11 +2,11 @@
 set -euo pipefail
 
 get_app() {
-  mix run -e "Mix.Project.config[:app] |> IO.puts" | tail -1
+  mix run --no-start -e "Mix.Project.config[:app] |> IO.puts" | tail -1
 }
 
 get_version() {
-  mix run -e "Mix.Project.config[:version] |> IO.puts" | tail -1
+  mix run --no-start -e "Mix.Project.config[:version] |> IO.puts" | tail -1
 }
 
 APP_NAME=`get_app`

+ 1 - 1
priv/build/get_latest_rel_dir.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 get_app() {
-  mix run -e "Mix.Project.config[:app] |> IO.puts" | tail -1
+  mix run --no-start -e "Mix.Project.config[:app] |> IO.puts" | tail -1
 }
 
 APP_NAME=`get_app`