203 Commits

Author SHA1 Message Date
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
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
Saeed Vaziry
d8ece27964
Add logs:clear command (#509) 2025-02-27 22:19:50 +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
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
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
4d59529767
Increase the content width (#492) 2025-02-16 15:22:44 +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) 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
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
Richard Anderson
b63ddfc568
WordPress Deployment Fix (#441)
* Resolved Issue with WordPress

* Fix for Vito User
2025-01-22 20:24:44 +01:00
Richard Anderson
bfdf3533fd
Filter out project users (#437) 2025-01-18 21:29:18 +01:00
Richard Anderson
c1ae58772c
Isolate Users (#431)
* WIP to isolate users

* Resolved issue with SSH AsUser

Updated Isolated User Script to use Server User for Team Access
Updated Path creation script to simplify for running as the isolated user

* Included the server user

* PHPMyAdmin script updated

Wordpress Script Updated
Updated Execute Script to support executing as isolated users

* Issue Resolution & Resolved Failing Unit Tests

* Fix for isolated_username vs user

* Run the deploy as the isolated user

* queue updates for isolated user

* Support isolated users in cronjobs

* script tests for isolated users

* Queue tests for isolated users

* Cronjob tests for isolated user

* Removed default queue command for laravel apps

* add default user to factory

* laravel pint fixes

* ensure echos are consistent

* removed unneeded parameter

* update

* fix queues for isolated users

* revert addslashes

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-01-18 01:17:48 +01:00
Richard Anderson
5947ae80bb
Fix Deployment Script on Windows Clients (#433)
* resolve issue with EOL

* Manual Run

* reverse change for manual run of tests

* remove logging
2025-01-16 21:03:53 +01:00
Tobias Schulz
93a7bf9c3a
make mask nullable and do a strict compare to allow firwall rules without masks (#432) 2025-01-13 17:28:59 +01:00
Saeed Vaziry
ab43dfb2a6
fix deploy error without script (#420) 2025-01-05 13:02:17 +01:00
Saeed Vaziry
a320e52dbf
fix default project of admin (#419) 2025-01-05 12:40:17 +01:00
Saeed Vaziry
20c6b58866
fix missing composer (#418) 2025-01-05 12:12:49 +01:00
Saeed Vaziry
f5c9d6701b
add directory state to console (#416) 2025-01-01 23:52:27 +01:00
Tobias Schulz
ba069a2db0
set server_tokens off for every created server (#414) 2025-01-01 13:07:55 +01:00
Saeed Vaziry
8b86ff23c9
fix create queue with root user (#409)
* fix create queue with root user

* fix

* fix queues for root user
2024-12-30 11:33:00 +01:00
Saeed Vaziry
dfdd50beb7
Mysql 8.4 support and Stream log output (#407) 2024-12-24 23:30:52 +01:00
Mark Topper
924920e6e8
Feature/nodejs (#397)
* Add node support using nvm

* Add icon

* Rename to NodeJS

* Rename to NodeJS

* update php and node logo

* only services which have units can be started,restarted,stopped,disabled and enabled

* add tests

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
2024-12-24 17:49:27 +01:00
Saeed Vaziry
ea3d64607a
support S3 compatible storage providers (#401) 2024-12-22 23:06:36 +01:00
Saeed Vaziry
572d1df010
demo (#392) 2024-12-14 03:13:47 +01:00
Saeed Vaziry
0d12dd0c69
cleanup before release (#391) 2024-12-13 20:02:43 +01:00
Saeed Vaziry
1b741070b3
Two factor (#383) 2024-12-02 20:10:36 +01:00
Rasel Islam Rafi
d4ec4c66ed
[2.x] [Filament] Update deprecated getFormSchema method to use form() override (#354) 2024-11-28 21:13:10 +01:00
Rasel Islam Rafi
acdbfa70f5
Added PHP8.4 (#380) 2024-11-27 22:40:09 +01:00
Rasel Islam Rafi
d77ceb1472
Fixed Server Stats Calculation (#379) 2024-11-27 22:38:17 +01:00
Saeed Vaziry
b7184dcfc4
add more lint (#378) 2024-11-25 23:27:37 +01:00
Saeed Vaziry
bc2e421128 fix policies 2024-11-23 10:38:36 +01:00
Saeed Vaziry
20944421de
load Vultr regions and plans dynamically (#369) 2024-11-17 12:09:41 +01:00