-
Notifications
You must be signed in to change notification settings - Fork 393
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
[WIP] Add SHOPIFY_API_KEY to DB_PATH when creating database #1061
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just two comments:
- I think there are references to
database.sqlite
in the README.md - We have to do similar changes in the other templates as well, right?
Good callout - we might have mentions of this in the tutorials as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after the points Gonzalo raised!
Isn't this ready to be merged? |
We haven't merged because we can't do the same implementation across the other templates ... in both the Ruby and PHP templates, the DB must be setup before the first run of Hence, we'd end up with an inconsistent experience (there had been a Slack thread on this but it's now long gone) |
I see, thanks. Any other idea? Does it make sense to try to clear the SQLite database when |
Closing this as a terrible idea! |
WHY are these changes introduced?
Running the following commands
and then opening the provided link will successfully allow the installation of the app.
Doing the following command as a follow-on step
# run the app again, creating a different new app on the partner account yarn dev --reset
and then opening the provided link will result in a "There's no page at this address" message.
Cause: running the app the second time uses the
database.sqlite
file created during the firstyarn dev
, resulting in the error.WHAT is this pull request doing?
When creating the database file, add the API_KEY in order to differentiate between different instances of the app. The database filename (was
database.sqlite
) is nowdb_${API_KEY}.sqlite