Skip to content

Conversation

oguzkocer
Copy link
Contributor

@oguzkocer oguzkocer commented Aug 29, 2025

To Test:

make test-server && make restore-test-server

Replace wp-cli database import with mariadb client to avoid SSL connection
errors. The mariadb client with --skip-ssl flag properly handles the database
connection without requiring SSL certificates.

Changes:
- Update restore_db function to use mariadb client instead of wp-cli
- Add proper stdin handling for SQL dump file import
- Add necessary imports for File and Stdio
Suppress verbose curl responses during WordPress setup to reduce log clutter
while preserving error messages for debugging. Added descriptive echo
statements to track setup progress.

Changes:
- Redirect curl stdout to /dev/null for template creation
- Redirect curl stdout to /dev/null for post revision generation
- Add progress messages for template and revision setup steps
@oguzkocer oguzkocer added this to the 0.2 milestone Aug 29, 2025
@oguzkocer oguzkocer requested a review from crazytonyli August 29, 2025 00:18
.arg("-u")
.arg("wordpress")
.arg("-pwordpress")
.arg("wordpress")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the password passed twice: -pwordpress wordpress?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second one is the database name. I've added comments to each argument in df9de22.

It's not great to have these be part of the Rust file, but I really don't want to spend any more time on the setup right now and would rather finish the features I am working on.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splitting -pwordpress in df9de22 didn't work, which should be addressed in 34892fc.

@oguzkocer oguzkocer marked this pull request as ready for review August 29, 2025 01:33
@oguzkocer oguzkocer merged commit 1658f1e into trunk Aug 29, 2025
20 checks passed
@oguzkocer oguzkocer deleted the use-mariadb-to-restore-test-server branch August 29, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants