Merged PetitTeton webapp with the inventory tracking app; Moved the database configuration out of git and added an example configuration; Added migrations to the mix so that we can easily update the production database and roll back changes to the database (from the command line install migrations [may not be necessary?]:
npm install -g sequelize-cli To update the database after updating the app from git (on the command line in the webapp base directory): sequelize db:migrate To undo the last migrations: sequelize db:migrate:undo
This commit is contained in:
14
config/db_example.js
Normal file
14
config/db_example.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
|
||||
'url' : 'postgres://PetitTeton:1qaz2wsx@localhost:5432/PetitTeton'
|
||||
/*
|
||||
"development": {
|
||||
"url": "xxxxxxxxxxxxxxxx",
|
||||
"dialect": "mysql"
|
||||
},
|
||||
"production": {
|
||||
"url": "xxxxxxxxxxxxxxxx",
|
||||
"dialect": "postgres"
|
||||
}
|
||||
*/
|
||||
};
|
||||
Reference in New Issue
Block a user