2016-05-14 7 views
2

exrmでPhoenixアプリケーションを配備したサーバで移行を実行する必要があります。このhttp://blog.plataformatec.com.br/2016/04/running-migration-in-an-exrm-release/によると、私は最初の移行のための第一のファイルを作成し、それを実行しました:Elixirでexrmを使用してサーバ上で移行を実行する

$ rel/my_app/bin/my_app test1 Elixir.Release.Tasks migrateUsing ....../rel/my_app/releases/0.0.2/my_app.sh 
Usage: my_app {start|start_boot <file>|foreground|stop|restart|reboot|ping|rpc <m> <f> [<a>]|console|console_clean|console_boot <file>|attach|remote_console|upgrade|escript|command <m> <f> <args>} 

それから私は、第二のアプローチを試してみることにした第二のファイルを作成し、それを実行しました:

$ rel/my_app/bin/my_app command release_tasks test2 
Using ......./rel/my_app/releases/0.0.2/my_app.sh 
{"init terminating in do_boot",{undef,[{release_tasks,test2,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}} 

Crash dump is being written to: erl_crash.dump...done 
init terminating in do_boot() 

それのどこが悪いんだい?

私のファイルはpriv/tasks.exs

答えて

0

privディレクトリにあるロード・パスではありません。 tasks.exslib/tasks.exに移動すると正常に動作します。

+0

エラーは依然として同じです。 –

+0

あなたのtasks.exファイルを投稿してください。 – tkowal

+0

こちらの記事と同じです。 –

関連する問題