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

Postgres DB Seed not importing #3

Closed
pseudoclass opened this issue Dec 20, 2021 · 2 comments
Closed

Postgres DB Seed not importing #3

pseudoclass opened this issue Dec 20, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@pseudoclass
Copy link

Describe the bug

When running the "make dev" command for the first time it seems the Postgres DB import is not occurring. After the initial setup and when trying to switch to Postgres via the "make postgres" command and refreshing the browser, the Install Craft page is displayed at the localhost:8000/admin URL.

I think this may be due to the postgres-db-seed file being a ZIP and not the uncompressed SQL file. I was able to remedy the problem by unzipping the SQL file in that directory and running the complete install process again. Don't know if this is a problem with my own local setup or not, but just wanted to add this report in case someone else is having the same problem.

To reproduce

Steps to reproduce the behaviour:

  1. Clear out Docker cache (to do a complete clean install)
  2. Run "make dev"
  3. When its ready visit localhost:8000/admin (default of MySQL works fine)
  4. Run "make postgres" and refresh the browser
  5. The Install Craft page comes up rather than the Craft Admin Login page

Expected behaviour

Switching to "make postgres" should load Craft using the Postgres DB

Versions

  • Craft version: 3.7.26
@pseudoclass pseudoclass added the bug Something isn't working label Dec 20, 2021
khalwat pushed a commit that referenced this issue Dec 20, 2021
…at, when it should have been in `.gz` format to work with the container `entrypoint.sh` ([#3](#3))
@khalwat
Copy link
Contributor

khalwat commented Dec 20, 2021

Good catch! It should have been in .gz format, not .zip format.

Fixed in https://github.com/nystudio107/plugindev/releases/tag/1.0.35

@khalwat khalwat closed this as completed Dec 20, 2021
@pseudoclass
Copy link
Author

Nice! Thanks for the update :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants