-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add sample for blue/green deployments * Add sample for Cloud Run Gemini chat * Remove debug flag
- Loading branch information
Showing
95 changed files
with
6,227 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
gcloud run deploy blue-green \ | ||
--source . \ | ||
--gpu 1 \ | ||
--gpu-type nvidia-l4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
|
||
const port = process.env.PORT || 8080; | ||
app.listen(port, () => { | ||
console.log(`App listening on port ${port}`); | ||
}); | ||
|
||
app.get('/', async (req, res) => { | ||
const html = ` | ||
<html> | ||
<body style="background-color: #4D4;"> | ||
<h1> | ||
Green | ||
</h1> | ||
</body> | ||
</html> | ||
`; | ||
res.send(html); | ||
}) |
Oops, something went wrong.