417 Commits

Author SHA1 Message Date
Saeed Vaziry
48ae561ea4 code-style 2025-03-13 20:53:14 +01:00
Saeed Vaziry
0f06d81aac
Add database and database users sync (#537)
* Add database and database users sync

* get mysl users

* add mariadb and postgres

* fix phpstan
2025-03-12 22:59:25 +01:00
Saeed Vaziry
493cbb0849
Add phpstan level 7(#544) 2025-03-12 13:31:10 +01:00
Dimitar Yanakiev
c22bb1fa80
Add isolated users to headless console (#533) 2025-03-07 00:14:45 +01:00
Saeed Vaziry
babf59350b
Fix run_action helper (#540)
* Fix run_action helper

* upgrade actions

* upgrade actions
2025-03-05 20:36:18 +01:00
Richard Anderson
5a12ed76bb
Database collations (#489)
* SyncDatabases

* Collation on Create inc WordPress

* Refactored Enum

* Resolve sync issue

* Fix for PostgreSQL

* pint

* reversed enum

* style adjustments

* add unit tests

* style

* fix tests

* more tests

---------

Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-03-02 17:18:27 +01:00
Dimitar Yanakiev
269ee8d962
Fix: Sail default container name to match docker-compose.yml (#532)
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`.
2025-03-02 14:06:58 +01:00
Saeed Vaziry
a060a06e73 add default commands 2025-03-02 12:08:18 +01:00
Dimitar Yanakiev
49137a757b
Fix console working directory for root user (#525)
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
2025-03-02 10:55:06 +01:00
Dimitar Yanakiev
97e20206e8
ite Commands (#298) (#519)
* 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>
2025-03-02 10:43:26 +01:00
Dimitar Yanakiev
176ff3bbc4
fix: Fix variables not being saved in database when executing a script (#518) 2025-02-28 23:26:18 +01:00
Dimitar Yanakiev
b2440586d6
fix: Fix regex in File Manager to support hyphenated usernames and groups (#516) 2025-02-28 19:49:33 +01:00
Dimitar Yanakiev
4b8e798e66
fix: prevent "null" from appearing in console after user selection (#501) (#514)
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.
2025-02-28 19:44:12 +01:00
Dimitar Yanakiev
6143eb94b4
feat: display repository and branch in site details (#512)
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.
2025-02-28 19:43:20 +01:00
Dimitar Yanakiev
e52903c649
fix: ensure newly created branches are available for switching (#511)
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.
2025-02-28 19:38:38 +01:00
Dimitar Yanakiev
1a5cf4c57a
fix: add missing php-intl package (#510)
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.
2025-02-28 19:38:10 +01:00
Saeed Vaziry
d8ece27964
Add logs:clear command (#509) 2025-02-27 22:19:50 +01:00
Saeed Vaziry
f54c754971 update docker publish script 2025-02-26 21:22:59 +01:00
Saeed Vaziry
7cda14cb76
Bump version 2.3.0 2.3.0 2025-02-26 20:49:20 +01:00
Saeed Vaziry
3bf3f7eebc
Fix filemanager permissions (#508)
* Fix filemanager permissions

* fix filemanager permissions

* fix tests warning
2025-02-26 20:46:07 +01:00
dependabot[bot]
e17fdbb1a0
Bump esbuild, laravel-vite-plugin and vite (#507)
Bumps [esbuild](https://github.com/evanw/esbuild) to 0.25.0 and updates ancestor dependencies [esbuild](https://github.com/evanw/esbuild), [laravel-vite-plugin](https://github.com/laravel/vite-plugin) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). These dependencies need to be updated together.


Updates `esbuild` from 0.18.20 to 0.25.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2023.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.18.20...v0.25.0)

Updates `laravel-vite-plugin` from 0.7.8 to 1.2.0
- [Release notes](https://github.com/laravel/vite-plugin/releases)
- [Changelog](https://github.com/laravel/vite-plugin/blob/1.x/CHANGELOG.md)
- [Upgrade guide](https://github.com/laravel/vite-plugin/blob/1.x/UPGRADE.md)
- [Commits](https://github.com/laravel/vite-plugin/compare/v0.7.8...v1.2.0)

Updates `vite` from 4.5.9 to 6.2.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.2.0/packages/vite)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: indirect
- dependency-name: laravel-vite-plugin
  dependency-type: direct:development
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 19:33:33 +01:00
Saeed Vaziry
e99146209e
Fix auto-deployment branch (#506) 2025-02-23 12:50:46 +01:00
Richard Anderson
1223ea1499
Fix .env Files for Isolated Users (#496) 2025-02-22 09:23:03 +01:00
Abdel Elrafa
2356e44f5b
Fix deployment script command (#498) 2025-02-19 20:13:26 +01:00
Richard Anderson
8c7c3d2192
Refactor firewall and add edit rule (#488) 2025-02-16 20:31:58 +01:00
Saeed Vaziry
e2b9d18a71
Built-in File Manager (#458) 2025-02-16 19:56:21 +01:00
Saeed Vaziry
75e554ad74
Disable docker build action (#494) 2025-02-16 16:25:59 +01:00
Saeed Vaziry
4d59529767
Increase the content width (#492) 2025-02-16 15:22:44 +01:00
Saeed Vaziry
ea31d0978f Cache docker build 2025-02-16 13:15:02 +01:00
Saeed Vaziry
ee4e9e5452 Upgrade docker to Ubuntu 24.04 2025-02-16 12:38:48 +01:00
Saeed Vaziry
48c12e26b2 Fix docker build 2025-02-16 12:36:33 +01:00
Saeed Vaziry
72f68b5917
Fix docker build (#491) 2025-02-16 12:32:36 +01:00
Austin Kregel
a889cf11a2
Fix different PHP version for sites (#487) 2025-02-16 10:58:58 +01:00
Austin Kregel
75a4fde8de
Update the vhost file to name the backend after the domain (#485) 2025-02-15 09:33:40 +01:00
Austin Kregel
fd67097884
Add mariadb missing blades (#476)
* Add missing views for Mariadb

* Add missing restore link

* adding test to avoid such issues

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-02-07 20:24:08 +01:00
Saeed Vaziry
705d029a63
bump version to 2.2.1 (#474) 2.2.1 2025-02-07 18:24:02 +01:00
Saeed Vaziry
7be63384d4
fix html especial characters in commands (#467) 2025-02-06 20:34:01 +01:00
Saeed Vaziry
dd78c86a60
Fix missing ip for AWS and DO (#461)
* Fix missing ip for AWS and DO

* Fix Vultr
2025-02-05 21:26:09 +01:00
Saeed Vaziry
262c5e040d
Force SSL and Multi SSL (#456) 2.2.0 2025-02-01 01:33:04 +01:00
Saeed Vaziry
ea396786e4
Start installing servers quicker (#454) 2025-01-31 00:20:41 +01:00
Saeed Vaziry
6966f06b1a
Add load balancer (#453) 2025-01-30 23:52:51 +01:00
Saeed Vaziry
53e20cbc2a
Ask for email when generating LetsEncrypt SSLs (#452) 2025-01-29 21:00:43 +01:00
Saeed Vaziry
270928af13
Fix server creation validation error (#451) 2025-01-29 20:55:22 +01:00
Saeed Vaziry
1e4a944acb
Fix isolated user validation (#450) 2025-01-29 20:17:47 +01:00
Pierluigi Cau (PG)
d702b95e0c
Add notification for deployment completion (#445)
* Add notification for deployment completion

Add notification for deployment completion status.

* Create `DeploymentCompleted` notification class in `app/Notifications/DeploymentCompleted.php` to handle deployment completion notifications.
* Update `app/Actions/Site/Deploy.php` to send `DeploymentCompleted` notification using `Notifier` when a deployment completes or fails.
* Import `Notifier` and `DeploymentCompleted` classes in `app/Actions/Site/Deploy.php`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/vitodeploy/vito?shareId=XXXX-XXXX-XXXX-XXXX).

* Format with pint

* Add tests

* Pint format

* Delete tests/Feature/Notifications/DeploymentCompletedTest.php

* Delete tests/Unit/Notifications/DeploymentCompletedTest.php

* 🍻🍻

* tests

---------

Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-01-29 19:29:51 +01:00
Saeed Vaziry
7b723bcba5
move site logs to separate sub-menu (#449) 2025-01-28 23:06:43 +01:00
Saeed Vaziry
8b58834a31
update composer and npm packages and rebuild (#448) 2025-01-28 22:40:21 +01:00
Saeed Vaziry
cdbde063f0
use blade as conmmands template (#444)
* use blade as conmmands template

* fix lint

* fix ssl
2025-01-27 21:27:58 +01:00
Richard Anderson
a73476c1dd
Edit & Download (local) Backups (#436)
* Allow editing of backups

* pint updates

* setup of backup download

* allow download for local backup files

* delete uploaded files on delete of BackupFile

* pint updates

* S3 upload & download fixes

* Deletion of backup files

* support $ARCH selector for s3 installation

* delete files when deleting backup

* fixed ui issue

* adjustment

* Use system temp path for downloads

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-01-25 21:59:35 +01:00
Saeed Vaziry
465951fd1e
drop telescope tables (#442) 2025-01-25 20:56:16 +01:00