This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
GCLP/deploy/release.sh

26 lines
1.1 KiB
Shell
Raw Normal View History

2020-10-03 13:23:48 +07:00
#!/bin/bash
cd ../lp
2020-10-05 20:38:23 +07:00
sudo _build/prod/rel/lp/bin/lp stop
2020-10-03 13:52:17 +07:00
# git pull origin pet
2020-10-03 12:27:12 +07:00
mix deps.get --only prod
MIX_ENV=prod mix compile
2020-10-03 13:52:17 +07:00
npm install --prefix ./assets
npm run deploy --prefix ./assets
mix phx.digest # once you have something js related
2020-10-03 12:27:12 +07:00
MIX_ENV=prod mix release
2020-10-05 20:38:23 +07:00
sudo _build/prod/rel/lp/bin/lp daemon
2020-10-03 12:27:12 +07:00
# note, that it is running in terminal
2020-10-05 20:38:23 +07:00
# start Starts the system
# start_iex Starts the system with IEx attached
# daemon Starts the system as a daemon
# daemon_iex Starts the system as a daemon with IEx attached
# eval "EXPR" Executes the given expression on a new, non-booted system
# rpc "EXPR" Executes the given expression remotely on the running system
# remote Connects to the running system via a remote shell
# restart Restarts the running system via a remote command
# stop Stops the running system via a remote command
# pid Prints the operating system PID of the running system via a remote command
# version Prints the release name and version to be booted