By default, Sail looks for the `laravel.test` container when running `sail artisan`, but the `docker-compose.yml` in this project defines the service as `app`. This caused `sail artisan` and other Sail commands to fail locally.
Updated the `APP_SERVICE` environment variable in `sail` to default to `app` instead of `laravel.test`, ensuring consistency with the service name in `docker-compose.yml`.
Previously, `$(pwd)` was expanded too early by the parent shell, leading to incorrect working directory output when `cd` was executed within `$request->command`. Replaced `echo "VITO_WORKING_DIR: $(pwd)"` with `echo -n "VITO_WORKING_DIR: " && pwd` to ensure `pwd` executes at the right moment inside the same shell session.
Closes#515
* feat: Implement Site Commands (#298)
- Introduced a Commands widget/table for Site view, allowing users to create, edit, delete, and execute commands.
- Each Site Type now has a predefined set of commands inserted upon site creation.
- A migration script ensures commands are created for existing sites.
- Implemented necessary policies for command management.
- Added feature tests to validate functionality.
* I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason.
* I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason.
* I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason.
* I'm trying to fix the tests, but it seems like it might not work. I'm having trouble running the tests locally for some reason.
* Remove feature tests for commands due to inconsistencies for now
* fixes
* add tests for commands
* ui fix and add to wordpress
---------
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
Ensure a default working directory is returned when fetching the console working directory. Previously, if a user is switched before running any commands, `Cache::get` would return `null`. Now, it defaults to `'~'` if no value exists.
Closes#501.
Added `repository` and `branch` fields to the site details view. These fields are now visible when a site has a corresponding repository or branch and are formatted accordingly.
Fixed an issue where the "Change Branch" button didn't work when switching to a newly created remote branch after initially cloning the repository. Added `git fetch origin` to update branch references before switching.
Added `php{{ $version }}-intl` to the installation list as it was missing. This package is a standard component in most projects and should be included by default.
* Add missing views for Mariadb
* Add missing restore link
* adding test to avoid such issues
---------
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>