Add installer functionality for WordPress with FTP and database configuration

- Create SQL migration for prompt templates used in article and image generation.
- Add migration to change publish interval from days to hours in the sites table.
- Implement InstallerController to handle installation requests and validation.
- Develop FtpService for FTP connections and file uploads.
- Create InstallerService to manage the WordPress installation process, including downloading, extracting, and configuring WordPress.
- Add index view for the installer with form inputs for FTP, database, and WordPress admin settings.
- Implement progress tracking for the installation process with AJAX polling.
This commit is contained in:
2026-02-16 21:55:24 +01:00
parent 884ee9cc88
commit b653cea252
37 changed files with 2899 additions and 204 deletions

View File

@@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS sites (
url VARCHAR(255) NOT NULL,
api_user VARCHAR(100) NOT NULL,
api_token VARCHAR(255) NOT NULL,
publish_interval_days INT NOT NULL DEFAULT 3,
publish_interval_hours INT NOT NULL DEFAULT 24,
last_published_at DATETIME NULL,
is_active TINYINT(1) NOT NULL DEFAULT 1,
is_multisite TINYINT(1) NOT NULL DEFAULT 0,
@@ -79,4 +79,5 @@ INSERT INTO settings (`key`, value) VALUES
('openai_model', 'gpt-4o'),
('image_provider', 'freepik'),
('article_min_words', '800'),
('article_max_words', '1200');
('article_max_words', '1200')
ON DUPLICATE KEY UPDATE value = value;