Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
lets encrypt rules
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jun 18, 2017
1 parent c615187 commit 0294f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 5 additions & 6 deletions deploy.php
Expand Up @@ -27,13 +27,12 @@
// Tasks

desc('Restart PHP-FPM service');
task('php-fpm:restart', function () {
// The user must have rights for restart service
// /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service
run('whoami');
run('sudo systemctl restart php-fpm.service');
task('gulp:asset', function () {
cd('{{release_path}}');
run('yarn global add gulp');
run('gulp --production');
});
after('deploy:symlink', 'php-fpm:restart');
after('deploy:symlink', 'gulp:asset');

// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
Expand Down
2 changes: 2 additions & 0 deletions public/.htaccess
Expand Up @@ -9,6 +9,8 @@
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Expand Down

0 comments on commit 0294f77

Please sign in to comment.