-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(run): add Cloud Run + Filestore sample #3288
Conversation
console.log(`Listening on port ${port}`); | ||
}); | ||
|
||
app.get(mntDir, async (req, res) => { |
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.
This doesn't add the "back" button to get back to the mount directory index.
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.
This sample can't add the back button because it's returning the actual file which is a plain-text .txt without HTML
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.
The canonical does this differently. Do you have a reason to break from the canonical?
GCS Fuse files to be added in separate PR |
fixes #3019 |
Description
This pull request will add a nodejs sample for deploying Cloud Run with a connected filestore.
To manually test full deployment to Cloud see Using Filestore with Cloud Run tutorial
Upon deployment:
/
will generate a test file to the mounted filestore./
will show file contents./filesystem
will present the files on the filesystem viaserve-index
Checklist
npm test
(see Testing)npm run lint
(see Style)