Skip to content

Commit

Permalink
removing yarn workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmarinho committed Mar 30, 2020
1 parent 80a2e23 commit 5ba7aef
Show file tree
Hide file tree
Showing 10 changed files with 10,744 additions and 3,757 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: yarn workspace backend prod
web: cd backend && yarn prod
40 changes: 25 additions & 15 deletions backend/knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,27 @@ module.exports = {
},
useNullAsDefault: true
},
test: {
production: {
client: "sqlite3",
connection: {
filename: "./src/database/test.sqlite"
filename: "./src/database/db.sqlite"
},
migrations: {
directory: "./src/database/migrations"
},
useNullAsDefault: true
},
staging: {
client: "postgresql",
test: {
client: "sqlite3",
connection: {
database: "my_db",
user: "username",
password: "password"
},
pool: {
min: 2,
max: 10
filename: "./src/database/test.sqlite"
},
migrations: {
tableName: "knex_migrations"
}
directory: "./src/database/migrations"
},
useNullAsDefault: true
},

production: {
staging: {
client: "postgresql",
connection: {
database: "my_db",
Expand All @@ -52,4 +46,20 @@ module.exports = {
tableName: "knex_migrations"
}
}

// production: {
// client: "postgresql",
// connection: {
// database: "my_db",
// user: "username",
// password: "password"
// },
// pool: {
// min: 2,
// max: 10
// },
// migrations: {
// tableName: "knex_migrations"
// }
// }
};
8 changes: 5 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"start": "nodemon src/server.js",
"prod": "node src/server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"keywords": [
"node"
],
"author": "Thiago Marinho <tgmarinho@gmail.com>",
"license": "MIT",
"dependencies": {
"celebrate": "^12.0.1",
"cors": "^2.8.5",
Expand Down
Loading

0 comments on commit 5ba7aef

Please sign in to comment.