Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Make clear-projects-rebuild a .ts file.
Browse files Browse the repository at this point in the history
  • Loading branch information
barankyle committed Jun 5, 2023
1 parent af2c81b commit 838d0c8
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import appRootPath from 'app-root-path'

/* eslint-disable @typescript-eslint/no-var-requires */
const dotenv = require('dotenv-flow')
const cli = require('cli')
const Sequelize = require('sequelize')
import dotenv from 'dotenv-flow'
import cli from 'cli'
import Sequelize from 'sequelize'

dotenv.config({
path: appRootPath.path,
Expand All @@ -16,7 +16,8 @@ const db = {
database: process.env.MYSQL_DATABASE ?? 'etherealengine',
host: process.env.MYSQL_HOST ?? '127.0.0.1',
port: process.env.MYSQL_PORT ?? 3306,
dialect: 'mysql'
dialect: 'mysql',
url: ''
}

db.url = process.env.MYSQL_URL ?? `mysql://${db.username}:${db.password}@${db.host}:${db.port}/${db.database}`
Expand Down

0 comments on commit 838d0c8

Please sign in to comment.