Container
Configuration properties that after tasks run by the container in a cloud project.
The container runs a number of tasks to set up the environment for your framework code to run. The options here provide the ability to customize these tasks.
Container Hooks
The container runs through a series of tasks to get your framework up and running. These commands can be customized using the properties below.
installCommand
Replaces Stackbit's default installation action.
1
2
3
- The command is run from the repository's root directory.
- Node version will be set by the
nodeVersion
property. preInstallCommand
andpostInstallCommand
will still be run when using this property.
postGitCloneCommand
The command to run after cloning the Git repository, and before preInstallCommand
.
1
2
3
- The command is run from the repository's root directory.
- Node version will be set by the
nodeVersion
property. - Unless handled separately, dependencies are not yet installed and will not be available.
postInstallCommand
A task to run after running the installCommand
and before starting the framework development server (devCommand
).
1
2
3
- The command is run from the repository's root directory.
- Node version will be set by the
nodeVersion
property.
preInstallCommand
A task to run before running the installCommand
1
2
3
- The command is run from the repository's root directory.
- Node version will be set by the
nodeVersion
property. - Unless handled separately, dependencies are not yet installed and will not be available.