From ec835905e8395bae351473a3281f98f565c4fe68 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Sat, 25 Nov 2023 09:53:06 +0100 Subject: [PATCH] Renommage du .js et utilisation du localhost, en prod --- .env | 2 +- .env.dev | 5 +++++ package.json | 4 ++-- app.js => wishlist.js | 0 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .env.dev rename app.js => wishlist.js (100%) diff --git a/.env b/.env index 9ab3b4a..532cd11 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ DATABASE = wishlist -DATABASE_HOST = db.thecoredev.fr +DATABASE_HOST = 127.0.0.1 DATABASE_PORT = 3306 DATABASE_USER = wishlist DATABASE_PASSWORD = 7/yvv9JA[RomOkLe \ No newline at end of file diff --git a/.env.dev b/.env.dev new file mode 100644 index 0000000..9ab3b4a --- /dev/null +++ b/.env.dev @@ -0,0 +1,5 @@ +DATABASE = wishlist +DATABASE_HOST = db.thecoredev.fr +DATABASE_PORT = 3306 +DATABASE_USER = wishlist +DATABASE_PASSWORD = 7/yvv9JA[RomOkLe \ No newline at end of file diff --git a/package.json b/package.json index 281b1ef..6e2889c 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "wishlist", "version": "1.0.0", "description": "test", - "main": "app.js", + "main": "wishlist.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "nodemon app.js" + "start": "nodemon wishlist.js" }, "author": "Laurent LE CORRE", "license": "ISC", diff --git a/app.js b/wishlist.js similarity index 100% rename from app.js rename to wishlist.js