Skip to content

Commit

Permalink
Merge branch 'master' of github.com:freescout-helpdesk/freescout into…
Browse files Browse the repository at this point in the history
… dist
  • Loading branch information
freescout-help-desk committed Nov 7, 2018
2 parents 0ae9757 + e7de1f8 commit e43e371
Show file tree
Hide file tree
Showing 38 changed files with 3,336 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ composer.phar
#composer.lock
.DS_Store
Thumbs.db
/.htaccess
#/.htaccess
/public/css/builds/
/public/js/builds/
/public/.well-known
Expand Down
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# On some hostings it is impossible to change web root directory
# so we rewrite all web requests into /public folder
RewriteEngine on
RewriteRule (.*) /public/$1 [L]
3 changes: 3 additions & 0 deletions app/ActivityLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ActivityLog extends Activity
const NAME_EMAILS_SENDING = 'send_errors';
const NAME_EMAILS_FETCHING = 'fetch_errors';
const NAME_SYSTEM = 'system';
const NAME_APP_LOGS = 'app';

const DESCRIPTION_USER_LOGIN = 'login';
const DESCRIPTION_USER_LOGOUT = 'logout';
Expand Down Expand Up @@ -83,6 +84,8 @@ public static function getLogTitle($log_name)
return __('Fetch Errors');
case self::NAME_SYSTEM:
return __('System');
case self::NAME_APP_LOGS:
return __('App Logs');
default:
return ucfirst($log_name);
}
Expand Down
13 changes: 10 additions & 3 deletions app/Console/Commands/ModuleInstall.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/**
* php artisan freescout:module-install modulealias
*/
namespace App\Console\Commands;

use Illuminate\Console\Command;
Expand Down Expand Up @@ -40,6 +42,9 @@ public function handle()
$install_all = false;
$modules = [];

// We have to clear modules cache first to update modules cache
$this->call('cache:clear');

// Create a symlink for the module (or all modules)
$module_alias = $this->argument('module_alias');
if (!$module_alias) {
Expand All @@ -60,8 +65,9 @@ public function handle()
}

if ($install_all) {
$this->call('module:migrate');
foreach ($modules as $module) {
$this->line('Module: '.$module->getName());
$this->call('module:migrate', ['module' => $module->getName()]);
$this->createModulePublicSymlink($module);
}
} else {
Expand All @@ -70,9 +76,10 @@ public function handle()
$this->error('Module with the specified alias not found: '.$module_alias);
return;
}
$this->call('module:migrate "'.$module->getName().'"');
$this->call('module:migrate', ['module' => $module->getName()]);
$this->createModulePublicSymlink($module);
}
$this->line('Clearing cache...');
$this->call('freescout:clear-cache');
}

Expand Down
Loading

0 comments on commit e43e371

Please sign in to comment.