Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: Mount SQLite database directory from wp-content stored in .wp-now #320

Merged
merged 4 commits into from
May 12, 2023

Conversation

wojtekn
Copy link
Collaborator

@wojtekn wojtekn commented May 12, 2023

In this PR, I propose to store the SQLite database directory in the wp-content/ directory inside the hidden utility ~/.wp-now directory and mount it in the project's document root.

It fixes: #313

Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

I verified this worked as expected by:

  • Running wp-now start in a 'plugin' directory: no folders created.
  • Running wp-now start in a 'wp-content' directory: database and plugins/sqlite-database-integration directories created, but they are empty (as expected).
  • Running wp-now start in an 'index' directory: no folders created.

@danielbachhuber danielbachhuber merged commit 83962f8 into trunk May 12, 2023
@danielbachhuber danielbachhuber deleted the mount-sqlite-db branch May 12, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local Environment: Add SQLite database to hidden wp-now directory in 'wp-content' mode
2 participants