File tree Expand file tree Collapse file tree 6 files changed +6
-7
lines changed Expand file tree Collapse file tree 6 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11const developmentConfig = require ( './development-config' ) ;
22const testConfig = require ( './test-config' ) ;
33
4- if ( process . env . NODE_PATH === 'test' ) {
4+ if ( process . env . NODE_ENV === 'test' ) {
55 module . exports = testConfig ;
66}
77else {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ exports = module.exports = {
1010
1111 // Database config for a postgresql db (docker based or native)
1212 DB : {
13- DATABASE : process . env . DB_NAME || 'judgeapi' ,
13+ DATABASE : process . env . DB_NAME || 'judgeapi-dev ' ,
1414 USERNAME : process . env . DB_USER || 'judgeapi' ,
1515 PASSWORD : process . env . DB_PASS || 'judgeapi' ,
1616 HOST : process . env . DB_HOST || 'localhost'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as amqp from 'amqplib/callback_api'
22import { Channel , Connection } from 'amqplib/callback_api'
33import { EventEmitter } from 'events'
44const debug = require ( 'debug' ) ( 'judge:api:jobqueue' )
5- import config = require( '../../config' )
5+ const config = require ( '../../config /config' )
66
77export interface SubmissionJob {
88 id : number
Original file line number Diff line number Diff line change 11import app from './server'
2- import config = require( '../config' )
32import * as debug from 'debug'
43import DB from 'models'
54
5+ const config = require ( '../config/config' )
66const log = debug ( 'judge:api' )
77
88DB . sequelize . sync ( { } )
Original file line number Diff line number Diff line change 11import Minio = require( 'minio' )
22import v4 = require( 'uuid/v4' )
33import axios from 'axios'
4- import config = require( '../../config' )
54
5+ const config = require ( '../../config/config' )
66const client = new Minio . Client ( {
77 endPoint : config . S3 . endpoint ,
88 port : + config . S3 . port ,
Original file line number Diff line number Diff line change 11import * as amqp from 'amqplib/callback_api' ;
2- import config = require( '../../config' ) ;
32import DB from "../../src/models" ;
4-
3+ const config = require ( '../../config/config' ) ;
54
65const jobQ = 'job_queue'
76const successQ = 'success_queue'
You can’t perform that action at this time.
0 commit comments