Separated test database and development database

This commit is contained in:
Ceferino Patino 2022-04-03 12:15:52 -05:00
commit 28722cbc8e
3 changed files with 2 additions and 38 deletions

View file

@ -1,30 +0,0 @@
{
"sqltools.connections": [
{
"mysqlOptions": {
"authProtocol": "default"
},
"previewLimit": 50,
"server": "c4thebomb101.com",
"port": 3306,
"driver": "MySQL",
"name": "node-test-site",
"database": "NODE_TEST_SITE",
"username": "c4patino",
"password": "JW63^Hy4HcBh"
},
{
"mysqlOptions": {
"authProtocol": "default"
},
"previewLimit": 50,
"server": "c4thebomb101.com",
"port": 3306,
"driver": "MySQL",
"name": "test-db",
"database": "TEST_DB",
"username": "c4patino@gmail.com",
"password": "JW63^hy4HcBh"
}
]
}

View file

@ -5,23 +5,17 @@
"main": "index.js",
"scripts": {
"start": "npm start -w",
"prebuild": "npm run env",
"build": "npm build -w client",
"predev": "npm run build",
"dev": "npm start server",
"package": "tar -czf ./dist.tar.gz ./client ./node_modules ./server LICENSE package-lock.json package.json",
"predist": "npm ci && npm run build && npm run env:remove",
"dist": "npm run package",
"pretest": "npm run env",
"test": "npm run test -w server",
"env": "npm run env --ws && touch db.sqlite3",
"env": "npm run env --ws && touch db.sqlite3 test_db.sqlite3",
"env:remove": "npm run env:remove -w client && rm .env",
"migrate": "npm run migrate -w server",
"migrate:undo": "npm run migrate:undo -w server"
},

View file

@ -10,7 +10,7 @@ module.exports = {
},
test: {
dialect: 'sqlite',
storage: '../db.sqlite3',
storage: '../test_db.sqlite3',
},
development: {
dialect: 'sqlite',