Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.19 KB

README.md

File metadata and controls

65 lines (49 loc) · 1.19 KB

Ultraman run example

ultraman run is used to run your application directly from the command line.
If no additional parameters are passed, ultraman will run one instance of each type of process defined in your Procfile.
If a parameter is passed, ultraman will run one instance of the specified application type.

The following options control how the application is run:

short long default description
-e --env .env Specify an environment file to load
-f --procfile Procfile Specify an alternate Procfile to load

Example

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"

Full option example (short)

cargo run run loop \
  -e .env \
  -f Procfile
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
^C%

Full option example (long)

cargo run run exit_0 \
  --env .env \
  --procfile Procfile
success