Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

sf-app-deploy extension is a minimalistic approach to CI/CD processes, designed for software houses having multiple customers with rather simple applications (one server, one repository, database changes done by the application itself, moderate web traffic, no strict security requirements).


sf-app-install script installs the application - you just need to supply:

  • application name (eg. myapp)
  • target directory (eg. /var/www/myapp)
  • system user with write permissions (eg. www-data)
  • repository url (eg. ssh://
  • deployment key (eg. id_myapp, it should be located in /etc/local/.ssh directory)
  • list of email addresses to notify after each deployment (optional)

sf-app-install myapp /var/www/myapp www-data ssh:// id_myapp

This will clone the repository to chosen target directory, set proper permissions for everything, and add entry to /etc/crontab file (which can be customized later).

cron/ script will run every 15 minutes by default, each time trying to pull changes from application repository, and executing pre/post build hook scripts.

When no changes are detected, and none of hook scripts will report an error, no report is stored, and the application is considered unchanged. Otherwise, report file is stored in /var/log/deploy-myapp directory and sent to all email addresses passed previously to sf-app-install.

Hook scripts

For most applications, it's not enough just to "git pull". cron/ can execute a few types of build scripts, containing custom build logic:

  1. Global hook scripts, located in /etc/local/hooks directory: and, run respectively before and after pulling changes from application repository.

  2. Local hook scripts, located directly in application directory (and thus in repository, so developers can edit them directly). There scripts are run only if the application uses system user different than root (ew. www-data).


Minimalistic approach to CI/CD processes, designed for software houses having multiple customers with rather simple applications.





No releases published


No packages published


You can’t perform that action at this time.