Node.js
node$ liusha init hello-node --template nodeRuns `npm start`; listen on `process.env.PORT`.
index.jspackage.json
Docs · templates
Every template is a small HTTP server that listens on PORT. Liusha packages your source, Buildpacks detects the language, and Knative routes https://name.liusha.app to it.
$ liusha templates $ liusha init my-api --template python $ cd my-api $ liusha deploy
node$ liusha init hello-node --template nodeRuns `npm start`; listen on `process.env.PORT`.
index.jspackage.jsonpython$ liusha init hello-python --template pythonRuns `python app.py`; listen on `os.environ["PORT"]`.
app.pyrequirements.txtProcfilego$ liusha init hello-go --template goBuildpacks compile the server from `go.mod`; listen on `PORT`.
main.gogo.modjava$ liusha init hello-java --template javaBuilds with Maven and starts the packaged jar.
pom.xmlsrc/main/java/com/liusha/Function.javaProcfileruby$ liusha init hello-ruby --template rubyRuns `ruby app.rb`; listen on `ENV["PORT"]`.
app.rbGemfileProcfilephp$ liusha init hello-php --template phpStarts PHP built-in server on `PORT`.
index.phpcomposer.jsonProcfilestart.shrust$ liusha init hello-rust --template rustBuildpacks compile the server from `Cargo.toml`; listen on `PORT`.
Cargo.tomlsrc/main.rsYou can deploy an existing project without a template. Liusha sends runtime metadata to the API and Buildpacks still does the real source detection:
$ liusha deploy --runtime auto $ liusha deploy --runtime go