Use a custom directory from the GIT repository

It may happen that your project is in a subfolder of your GIT repository. It’s completely OK but you have to notice Scalingo’s deployment system about it as the default behaviour is to look at the root of the GIT repository.

Custom directory configuration

You need to setup the PROJECT_DIR environment variable for your application, and automatically our build system will look at it. The variable has to target a valid directory, otherwise the deployment process will fail.


If your project has the following architecture:


You want to deploy what is in the /server directory, so you have to define PROJECT_DIR=server. That’s it, it will be taken into account at your next deployment.


Only the PROJECT_DIR directory will be present during runtime, the parent directory is not added to the application image we are building at the deployment time.

schedule 02 Jun 2015