Skip to content

Commit

Permalink
Update php installation, added skip_apache_restart config flag, remov…
Browse files Browse the repository at this point in the history
…ed kibana/elasticsearch support
  • Loading branch information
ytorbyk committed Jan 8, 2023
1 parent dc565aa commit 76b612a
Show file tree
Hide file tree
Showing 22 changed files with 63 additions and 543 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,35 @@ export PATH="$PATH:/usr/local/sbin:$HOME/bin:$HOME/.composer/vendor/bin"
brew update
brew upgrade
```
2. Since there is no php by default in macOS it hsould be istalled manually via brew.
```bash
brew install shivammathur/php/[email protected]
```

2. Download phar package from [the latest release](https://github.com/ytorbyk/sage/releases/latest) and put it in `$HOME/bin` folder.
3. Download phar package from [the latest release](https://github.com/ytorbyk/sage/releases/latest) and put it in `$HOME/bin` folder.
```bash
curl -L https://github.com/ytorbyk/sage/releases/latest/download/sage.phar > $HOME/bin/bin-sage
chmod +x $HOME/bin/bin-sage
```
4. Create $HOME/bin/sage txt file with the next contend
```bash
#!/usr/bin/env bash
/usr/local/opt/[email protected]/bin/php "$HOME/bin/bin-sage" "$@"
```
5. Make the txt file executable
```bash
curl -L https://github.com/ytorbyk/sage/releases/latest/download/sage.phar > $HOME/bin/sage
chmod +x $HOME/bin/sage
chown +x $HOME/bin/sage
```

3. [Optional step] Customize configuration
6. [Optional step] Customize configuration
```bash
# It creates configuration dump ~/xSage/config.php.
# You can customize and move it to ~/.sage/config.php before next step if you want.

sage env:config-dump
```

4. Install and configure required environments
7. Install and configure required environments
```bash
# It's automatic, you will prompt to enter your password once and two times MySQL root password.
# If you don't have installed MySQL before, just press enter (there is no password by default).
Expand All @@ -45,12 +58,12 @@ sage env:config-dump
sage env:install
```

5. [Optional step] Install Bash completion for the application
8. [Optional step] Install Bash completion for the application
```bash
sage env:completion
```

6. Ready to use
9. Ready to use
```bash
# Displays a list of supported commands with short descriptions

Expand Down
82 changes: 0 additions & 82 deletions app/Commands/ElasticSearch/InstallCommand.php

This file was deleted.

33 changes: 0 additions & 33 deletions app/Commands/ElasticSearch/RestartCommand.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/Commands/ElasticSearch/StartCommand.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/Commands/ElasticSearch/StopCommand.php

This file was deleted.

51 changes: 0 additions & 51 deletions app/Commands/ElasticSearch/UninstallCommand.php

This file was deleted.

6 changes: 1 addition & 5 deletions app/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
use App\Commands\Php\SwitchCommand;
use App\Commands\Redis\InstallCommand as RedisInstall;
use App\Commands\MailHog\InstallCommand as MailHogInstall;
use App\Commands\ElasticSearch\InstallCommand as ElasticSearchInstall;
use App\Commands\Kibana\InstallCommand as KibanaInstall;
use App\Commands\RabbitMq\InstallCommand as RabbitMqInstall;
use App\Commands\CompletionCommand as CompletionInstall;

Expand Down Expand Up @@ -64,12 +62,10 @@ public function handle(): void
$this->call(SecureInstall::COMMAND);
$this->call(PhpInstall::COMMAND);

$this->call(SwitchCommand::COMMAND, ['version' => '7.2']);
$this->call(SwitchCommand::COMMAND, ['version' => '8.1']);

$this->call(RedisInstall::COMMAND);
$this->call(MailHogInstall::COMMAND);
$this->call(ElasticSearchInstall::COMMAND);
$this->call(KibanaInstall::COMMAND);
$this->call(RabbitMqInstall::COMMAND);

$this->call(CompletionInstall::COMMAND);
Expand Down
65 changes: 0 additions & 65 deletions app/Commands/Kibana/InstallCommand.php

This file was deleted.

Loading

0 comments on commit 76b612a

Please sign in to comment.