Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express'),
- app = express(),
- chalk = require('chalk'),
- debug = require('debug')('app'),
- morgan = require('morgan'),
- path = require('path'),
- mysql= require('mysql'),
- PORT = process.env.PORT || 3000;
- var knex = require('knex')({
- client: 'mysql',
- connection: {
- host : 'sql12.freemysqlhosting.net',
- user : 'sql12252060',
- password : 'ZhgGIqD133',
- database : 'sql12252060'
- }
- });
- knex.schema.withSchema('sql12252060').createTable('player', function (table) {
- console.log('table')
- })
- app.use(morgan('tiny'));
- app.get('/', (req, res) => {
- res.send('dd')
- });
- app.listen(PORT, () => {
- debug(`listing to ${chalk.red(PORT)}`);
- });
Add Comment
Please, Sign In to add comment