davlgd / taskdemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clever Cloud Task demo

Get this project code by cloning it from GitHub:

git clone https://github.com/davlgd/taskdemo.git

Create a Clever Cloud JS application, as a task:

clever create -t node --task "bash task.sh"

You can try the old school way:

clever create --type node
clever env set CC_TASK "true"
clever env set CC_RUN_COMMAND "bash task.sh"

Git push!

git add . && git commit -m "Initial commit"
clever deploy

One-liner addict, you can just obtain the result URL and open it in your browser:

open $(clever deploy | grep -o 'http[s]\?://sprunge[^ ]*') 

Depending on your operating system, the open command can differ. On Linux, you can use xdg-open instead.

About


Languages

Language:Shell 100.0%