ultraman check
checks if one or more processes are defined in the Procfile.
It does not check the contents of the process.
short | long | default | description |
---|---|---|---|
-f | --procfile | Procfile |
Specify an alternate Procfile to load |
Here is an example when the Procfile
and .env
files have the following contents
[Procfile]
exit_0: ./fixtures/exit_0.sh
exit_1: ./fixtures/exit_1.sh
loop: ./fixtures/loop.sh $MESSAGE
[.env]
MESSAGE="Hello World"
cargo run check \
-f Procfile
valid procfile detected (exit_0, exit_1, loop)
echo $?
0
cargo run check \
-f ./tmp/do_not_exist/Procfile
./tmp/do_not_exist/Procfile does not exist.
echo $?
1
cargo run check \
--procfile Procfile
valid procfile detected (exit_0, exit_1, loop)
echo $?
0