Skip to content

Commit a561d45

Browse files
committed
Release version 0.3.0 with enhanced error handling, new --show-errors flag for detailed output, and automatic Git host key verification. Updated README and CHANGELOG to reflect new features and improvements.
1 parent b86c662 commit a561d45

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.0] - 2025-01-XX
9+
10+
### Added
11+
- Enhanced error handling with detailed error messages showing exit codes and command output
12+
- `--show-errors` flag for `hostinger:deploy` command to display verbose error information
13+
- Automatic Git host key verification: Automatically adds Git repository host (GitHub, GitLab, etc.) to `known_hosts` to prevent interactive prompts during first-time cloning
14+
- Support for all Git hosting providers: Extracts hostname from repository URL automatically (GitHub, GitLab, Bitbucket, etc.)
15+
16+
### Improved
17+
- Error messages now include exit codes, error output (stderr), and regular output (stdout) from failed SSH commands
18+
- Deployment failures now provide actionable debugging information instead of generic error messages
19+
- Fixed first-time repository cloning issue where SSH would prompt for host key verification
20+
- Better error visibility: Errors with detailed information are automatically shown even without the `--show-errors` flag
21+
22+
### Documentation
23+
- Added requirement documentation for PHP `exec()` function in README
24+
- Added SSH public key authentication setup recommendations and instructions
25+
- Moved environment variables section to the top of README for better visibility
26+
- Enhanced README with clearer setup instructions and security best practices
27+
28+
### Fixed
29+
- Fixed deployment failure on first-time git clone due to host key verification prompt
30+
- Improved error reporting when deployment commands fail with non-zero exit codes
31+
832
## [0.2.0] - 2025-10-31
933

1034
### Added

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Deploy your Laravel application to Hostinger shared hosting with automated GitHu
77
Install the package via Composer:
88

99
```bash
10-
composer require thecodeholic/laravel-hostinger-deploy:^0.2 --dev
10+
composer require thecodeholic/laravel-hostinger-deploy:^0.3 --dev
1111
```
1212

1313
Or install the latest version:
@@ -77,6 +77,7 @@ php artisan hostinger:deploy
7777
- `--fresh` - Delete existing files and clone fresh repository
7878
- `--site-dir=` - Override site directory from config
7979
- `--token=` - GitHub Personal Access Token (optional, enables automatic deploy key management)
80+
- `--show-errors` - Display detailed error messages with exit codes and command output
8081

8182
> **Note:** If `GITHUB_API_TOKEN` is provided (via `.env` or `--token` option), the command will automatically add deploy keys to your GitHub repository. Otherwise, you'll be prompted to add the deploy key manually.
8283

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "thecodeholic/laravel-hostinger-deploy",
33
"description": "Laravel package for automated Hostinger deployment with GitHub Actions support",
44
"type": "library",
5-
"version": "0.2.0",
5+
"version": "0.3.0",
66
"license": "MIT",
77
"keywords": [
88
"laravel",

0 commit comments

Comments
 (0)