* fix: add missing backticks in Blade for MySQL/MariaDB database names with hyphens
Before:
The CREATE DATABASE command failed for database names containing hyphens (-) because MySQL/MariaDB requires backticks around such names, but they were missing in the Blade template.
After:
Backticks (```) are now correctly added in the Blade template, ensuring MySQL properly interprets database names with hyphens.
Why:
MySQL/MariaDB does not allow hyphens in database names unless they are enclosed in backticks. The Blade template was missing these backticks, causing syntax errors. Adding them ensures the command executes successfully. 🚀
* fix: added hyphens to other places as well
---------
Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
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>