-
Notifications
You must be signed in to change notification settings - Fork 26
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
Create Plugin: Update docs to build backend before running docker #167
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sarahzinger
requested review from
leventebalogh and
jackw
and removed request for
leventebalogh
December 5, 2022 21:04
jackw
added
create-plugin
related to the create-plugin tool
patch
Increment the patch version when merged
labels
Dec 7, 2022
jackw
reviewed
Dec 14, 2022
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.
Nice! 🚀
leventebalogh
approved these changes
Dec 16, 2022
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.
Nice 👏
jackw
force-pushed
the
reverse-backend-and-frontend-instructions
branch
from
January 11, 2023 11:36
a836a6d
to
f98dad9
Compare
@sarahzinger have rebased this with main. Will wait for it to build then merge. Thanks so much for helping out with this project! ⭐ |
jackw
changed the title
Update docs to recommend building backend before running docker.
Create Plugin: Update docs to build backend before running docker
Jan 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
create-plugin
related to the create-plugin tool
patch
Increment the patch version when merged
release
Create a release when this pr is merged
type/docs
Changes only affect the documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Ensures instructions guide users towards building their plugin's backend before running docker.
Right now if you build a plugin with a backend with the create-plugin tool and follow the instructions as written you'll get a 503 error message with the message "plugin unavailable". This is because if you follow the instructions as currently written you are building the backend of your plugin (
mage -v
) after you've runyarn server
ordocker-compose up -build
which kicks of a dockerized version of grafana but which does not restart if the new files in your plugin are built. It may not be clear to the user that they need to restart yarn server/docker and/or run these commands in a different order.I think in the future it would be awesome to add some tooling to rebuild/restart the server on backend changes as well, but this feels like a nice small incremental improvement in helping people get started faster.
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via:
npm install @grafana/create-plugin@0.8.2-canary.167.f98dad9.0 # or yarn add @grafana/create-plugin@0.8.2-canary.167.f98dad9.0