Dec 16, 2020
Clever-cloud made it really easy, if you understand their doc properly and if you know where to look. We didn't, so they gave us the solution that we' re happy to share with you here !
Let's say your project structure is something like that
project
|_ app
|_ api
|_ admin
You want to deploy the /api
folder in your clever-cloud instance ? Just add the environment variable APP_FOLDER in clever cloud, with the value being your folder name, in our case:
APP_FOLDER=api
and clever-cloud will know that what do deploy is the nested api
folder, not the root project
.
More infos on environment these environment variables here