mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
2ca30a0b2d
* ci(examples): refactor process management * ci(examples): build hackernews_js_fetch with deno * ci(workflows): detect hackernews_js_fetch change * chore(web-report): report deno usage * chore(web-report): ignore gtk example * ci(todo_app_sqlite): simulate change * ci(workflows): install deno * ci(todo_app_sqlite): remove simulated change
38 lines
955 B
TOML
38 lines
955 B
TOML
[tasks.start-client]
|
|
|
|
[tasks.stop-client]
|
|
condition = { env_set = ["CLIENT_PROCESS_NAME"] }
|
|
script = '''
|
|
if pidof -q ${CLIENT_PROCESS_NAME}; then
|
|
echo " Stopping ${CLIENT_PROCESS_NAME}"
|
|
pkill -ef ${CLIENT_PROCESS_NAME}
|
|
else
|
|
echo " ${CLIENT_PROCESS_NAME} is already stopped"
|
|
fi
|
|
'''
|
|
|
|
[tasks.client-status]
|
|
condition = { env_set = ["CLIENT_PROCESS_NAME"] }
|
|
script = '''
|
|
if pidof -q ${CLIENT_PROCESS_NAME}; then
|
|
echo " ${CLIENT_PROCESS_NAME} is up"
|
|
else
|
|
echo " ${CLIENT_PROCESS_NAME} is not running"
|
|
fi
|
|
'''
|
|
|
|
[tasks.maybe-start-client]
|
|
condition = { env_set = ["CLIENT_PROCESS_NAME"] }
|
|
script = '''
|
|
if pidof -q ${CLIENT_PROCESS_NAME}; then
|
|
echo " ${CLIENT_PROCESS_NAME} is already started"
|
|
else
|
|
echo " Starting ${CLIENT_PROCESS_NAME}"
|
|
if [ -n "${SPAWN_CLIENT_PROCESS}" ];then
|
|
echo "Spawning process..."
|
|
cargo make start-client ${@} &
|
|
else
|
|
cargo make start-client ${@}
|
|
fi
|
|
fi
|
|
'''
|