use GOPATH for migration script; update postgraphile to watch db schema
This commit is contained in:
parent
4120a18b7b
commit
a850e369ff
@ -27,6 +27,7 @@ describe('bootServer', () => {
|
||||
middleware: jasmine.createSpyObj<PostgraphileMiddleware>(['call']),
|
||||
options: {
|
||||
pluginHook: jasmine.createSpy('pluginHook'),
|
||||
watchPg: true,
|
||||
simpleSubscriptions: true,
|
||||
graphiql: true,
|
||||
webSocketMiddlewares: [] },
|
||||
|
@ -11,6 +11,7 @@ export interface PostgraphileMiddleware extends RequestHandler {}
|
||||
export interface PostgraphileOptions {
|
||||
pluginHook: PluginHookFn,
|
||||
simpleSubscriptions: boolean;
|
||||
watchPg: boolean;
|
||||
graphiql: boolean;
|
||||
// NOTE (jchristie@8thlight.com) Shape of the middlewares is not
|
||||
// currently important to this application, but if a need arises,
|
||||
|
@ -27,6 +27,7 @@ export function buildServerConfig(
|
||||
const options: PostgraphileOptions = {
|
||||
pluginHook: pluginHook,
|
||||
simpleSubscriptions: true,
|
||||
watchPg: true,
|
||||
graphiql: true,
|
||||
webSocketMiddlewares: [
|
||||
expressSessionHandler,
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
if [ $# -eq 1 ]
|
||||
then
|
||||
$GOBIN/migrate create -dir ./db/migrations -ext sql $1
|
||||
$GOPATH/bin/migrate create -dir ./db/migrations -ext sql $1
|
||||
else
|
||||
echo "**An Error Occurred**"
|
||||
echo "Usage: ./scripts/create_migration <migration-name>"
|
||||
|
Loading…
Reference in New Issue
Block a user