Skip to content

Commit

Permalink
Gemini chat (#76)
Browse files Browse the repository at this point in the history
* Add sample for blue/green deployments

* Add sample for Cloud Run Gemini chat

* Remove debug flag
  • Loading branch information
momander authored Aug 27, 2024
1 parent 2ff9fa3 commit d3c206e
Show file tree
Hide file tree
Showing 95 changed files with 6,227 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blue-green/deploy.sh
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
20 changes: 20 additions & 0 deletions blue-green/index.js
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);
})
Loading

0 comments on commit d3c206e

Please sign in to comment.