fix up some docker build issues re pathing
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
// import express from 'express'
|
||||
import * as grpc from '@grpc/grpc-js'
|
||||
|
||||
// import { Character } from './proto/character'
|
||||
import { initCharacterService } from './character_service'
|
||||
|
||||
const port = 8000;
|
||||
@@ -12,15 +10,4 @@ initCharacterService(app)
|
||||
|
||||
app.bindAsync("0.0.0.0:8000", grpc.ServerCredentials.createInsecure(), () => {
|
||||
console.log("Starting server at 0.0.0.0:8000")
|
||||
})
|
||||
|
||||
// const app = express()
|
||||
|
||||
// app.get('/api/person', async (req, res) => {
|
||||
// res.status(200).send('potato!')
|
||||
// })
|
||||
|
||||
// app.listen(port, async () => {
|
||||
// console.log(`Express is listening at http://localhost:${port}`)
|
||||
// return
|
||||
// })
|
||||
})
|
||||
@@ -1,7 +1,10 @@
|
||||
import * as grpc from '@grpc/grpc-js'
|
||||
|
||||
import { Character } from './proto/character'
|
||||
import { Character, GetCharacterRequest, GetCharacterResponse } from './proto/character'
|
||||
|
||||
export function initCharacterService(server: grpc.Server) {
|
||||
}
|
||||
|
||||
function getCharacter(request: GetCharacterRequest): GetCharacterResponse {
|
||||
return new GetCharacterResponse()
|
||||
}
|
||||
Reference in New Issue
Block a user