Skip to content

Commit

Permalink
http conf command simplifiction was done.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgncan committed Feb 7, 2020
1 parent afec31e commit 7fd7aa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion example-project/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ($args) {
'update-http-conf'=>
[
'confPath'=>[
'local'=>'.', // for example: /usr/local/httpd_docs/conf/
'local'=>'/work/conf/',
'test'=>'/work/test/conf/',
'preprod'=>'/work/preprod/conf/',
'prod'=>'/work/prod/conf/'
Expand Down
4 changes: 2 additions & 2 deletions init.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ return [
'application-name'=>'example-project',
'update-assets'=>
[
// example
// example
'Update adminlte-minimal'=>[
'vendor'=>'/vendor/dgncan/adminlte-minimal',
'public'=>'/public/adminlte',
Expand All @@ -27,7 +27,7 @@ return [
'update-http-conf'=>
[
'confPath'=> [
'local'=>'.', // for example: /usr/local/httpd_docs/conf/
'local'=>'/work/conf/',
'test'=>'/work/test/conf/',
'preprod'=>'/work/preprod/conf/',
'prod'=>'/work/prod/conf/'
Expand Down
11 changes: 1 addition & 10 deletions src/Command/UpdateHttpConfCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$io->section("Restart Apache for Development Environment:");
if ($env == 'dev') {
if (file_exists('/usr/local/httpd_docs/bin/apachectl')) {
$cmd = "/usr/local/httpd_docs/bin/apachectl -k restart";
system($cmd, $r);
if ($r == 1) {
$io->error("Failed Apache Restart");
exit(1);
}
} else {
$io->success("Apache could not found in expected place");
}
$io->success("Please restart Apache as manuel. If you use Docker restart your docker container.");
} else {
$io->success("Only dev");
}
Expand Down

0 comments on commit 7fd7aa5

Please sign in to comment.