Lume (Deno)

Lume (Deno)

If you need an example source code, use Lume website (you’ll need git and Deno):

git clone myStaticApp

Create a static application

You can create an application in our Console or through Clever Tools:

npm i -g clever-tools
clever login

cd myStaticApp
clever create -t static-apache myStaticApp

To deploy on Clever Cloud, your local folder need to be a git reposiory (if not, git init) linked to an application. If you already have an application on Clever Cloud and want to link it to the current local folder:

clever link your_app_name_or_ID

Configure environment variables and deploy script

Next, configure the application with a medium build instance to quickly generate static files. The host instance is nano-sized, enough for a simple website. As Clever Cloud is based on standards, you only need to define a few variables:

clever scale --build-flavor M
clever scale --flavor nano

clever env set CC_WEBROOT "/_site"
clever env set CC_OVERRIDE_BUILDCACHE "/_site"
clever env set CC_PRE_BUILD_HOOK "bash"
clever env set CC_POST_BUILD_HOOK "deno task lume"

Edit the deploy script ( with this content:


# Download Deno and place it in a folder in the $PATH
curl --create-dirs -s -L -o ${DEST_BIN}/${FILENAME} ${DENO_URL}
cd ${DEST_BIN}
unzip ${FILENAME} -d ${DEST_BIN}

Git push!

Once all these steps have been completed, commit your content to the local repository and deploy it:

git add .
git commit -m "First deploy"
clever deploy
clever open

You can display your website’s URL or add a custom domain to it (you’ll need to configure DNS):

clever domain
clever domain add
Last updated on

Did this documentation help you ?