export default { paths: { build: '.build', dist: 'dist', }, symlinks: [ { cwd: 'src/vendor/bin', name: 'drush', target: '../drush/drush/drush', }, { cwd: 'src/vendor/bin', name: 'drush.php', target: '../drush/drush/drush.php', }, ], // default directory and file perms dirmode: '0755', filemode: '0644', // gulp.src(source).pipe(gulp.dest(dest)) // dest is a path relative to BUILD_INSTALL_PATH // source globs are relative to the project root files: [ { dest: '', source: [ '.env.default', 'deploy/resources/artisan', 'deploy/resources/generate-docker-compose', 'deploy/resources/start', 'stop', ], }, { dest: 'src', source: [ 'src/**', '!src/bootstrap/cache', '!src/bootstrap/cache/**', '!src/composer*', '!src/phpunit*', '!src/storage', '!src/storage/**', '!src/tests', '!src/tests/**', ], }, ], // ad-hoc perms that are assigned right before the package archive is created chmods: [ ['0755', 'src/non-existent-1'], ['0755', 'src/non-existent-2'], ['0750', 'src/build'], ['0777', 'src/packaging', {recursive: true}], ['0400', 'VERSION'], ['0400', 'GIT_REVISION'], ], // "debian", "rpm", "tarball", or "zipball" packaging: { type: 'debian', options: { control: { }, scripts: { postinst: (prefix) => { return [ `cd ${prefix}`, './start -s', ]; }, }, compression: { algo: 'bzip2', level: '9', }, }, }, // "upstart" or "systemd" init: { type: 'upstart', etc: '/etc/init', scripts: { start: (prefix) => { return [ `cd ${prefix}`, `./start -s`, ]; }, }, }, logrotate: { etc: '/etc/logrotate.d', stanzas: [ { path: '.runtime/var/log/nginx/*.log', directives: [ 'daily', 'missingok', 'copytruncate', 'compress', 'notifempty', 'create 640 root www-data', ], }, { path: 'src/storage/logs/*.log', directives: [ 'daily', 'missingok', 'copytruncate', 'compress', 'notifempty', 'create 640 root www-data', ], }, ], }, }; // vim: syntax=javascript ts=2 sts=2 sw=2 et