Browse Source

run migrations when starting the service

pull/26/head
Inhji Y. 1 year ago
parent
commit
8cc6195286
  1. 3
      tomie.service

3
tomie.service

@ -9,8 +9,9 @@ Restart=on-failure
EnvironmentFile=/opt/tomie/.env
WorkingDirectory=/opt/tomie/_build/prod/rel/tomie/bin
ExecStartPre=/opt/tomie/_build/prod/rel/tomie/bin/tomie eval "MyApp.Release.migrate"
ExecStart=/opt/tomie/_build/prod/rel/tomie/bin/tomie start
ExecStop=/opt/tomie/_build/prod/rel/tomie/bin/tomie stop
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target