text: #!/usr/bin/env node
  require('dotenv').config();
  const chalk = require('chalk');
  const http = require('http');
  const app = require('../server');
  
  const port = process.env.PORT || 8080;
  app.set('port', port);
  
  const server = http.createServer(app);
  
  const { Client } = require('pg');
  
  const client = new Client({
    connectionString: process.env.DATABASE_URL,
    ssl: true,
  });
  
  client.connect();
  
  client.query('SELECT table_schema,table_name FROM information_schema.tables;', (err, res) => {
    if (err) throw err;
    for (let row of res.rows) {
      console.log(JSON.stringify(row));
    }
    client.end();
  });
  
  server.listen(port, err => {
    if (err) {
      return console.log('😫', chalk.red(err));
    }
    console.log(`🚀 Now listening on port ${chalk.green(port)}`);
  });
  