From 4c3c4554134060a49a26ae34a26e924fe95bb097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Bianco?= Date: Tue, 4 Feb 2020 10:40:08 -0300 Subject: [PATCH] u u --- Dockerfile | 8 ++++---- config/default.toml | 8 ++++---- config/{tb-default.toml => prod.toml} | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) rename config/{tb-default.toml => prod.toml} (97%) diff --git a/Dockerfile b/Dockerfile index 2bd7e260..5b24d091 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,11 @@ RUN apk add --no-cache tzdata RUN apk add git ENV TZ=America/Argentina/Buenos_Aires -RUN npm install -f -RUN npm install posix --save +RUN npm install -g npm +RUN npm install --prod -f COPY . /app/ -EXPOSE 3000 +EXPOSE 3001 -CMD npm run start \ No newline at end of file +CMD NODE_ENV=prod npm run start \ No newline at end of file diff --git a/config/default.toml b/config/default.toml index 408f229d..84b54b93 100644 --- a/config/default.toml +++ b/config/default.toml @@ -58,7 +58,7 @@ level="verbose" [www] # HTTP port to listen on -port=3000 +port=3001 # HTTP interface to listen on host="0.0.0.0" # Enable HTTPS @@ -87,13 +87,13 @@ postsize="2MB" #tmpdir="/tmp" [mysql] -host="srv-captain--db-mysql-itopps" +host="localhost" user="root" -password="86CA89311DA8862F3F065E14D011CDBA481B6A86403AE02DF3FF0FAD8239A8FF0BF15A46FCA1A05819929E95A95FBE08A27C0E7D0246E9A8D6E609A2B82B28F7" +password="root" database="mailtrain" # Some installations, eg. MAMP can use a different port (8889) # MAMP users should also turn on "Allow network access to MySQL" otherwise MySQL might not be accessible -port=3306 +port=8889 charset="utf8mb4" # The timezone configured on the MySQL server. This can be 'local', 'Z', or an offset in the form +HH:MM or -HH:MM timezone="local" diff --git a/config/tb-default.toml b/config/prod.toml similarity index 97% rename from config/tb-default.toml rename to config/prod.toml index 62bfccec..408f229d 100644 --- a/config/tb-default.toml +++ b/config/prod.toml @@ -87,13 +87,13 @@ postsize="2MB" #tmpdir="/tmp" [mysql] -host="localhost" +host="srv-captain--db-mysql-itopps" user="root" -password="root" +password="86CA89311DA8862F3F065E14D011CDBA481B6A86403AE02DF3FF0FAD8239A8FF0BF15A46FCA1A05819929E95A95FBE08A27C0E7D0246E9A8D6E609A2B82B28F7" database="mailtrain" # Some installations, eg. MAMP can use a different port (8889) # MAMP users should also turn on "Allow network access to MySQL" otherwise MySQL might not be accessible -port=8889 +port=3306 charset="utf8mb4" # The timezone configured on the MySQL server. This can be 'local', 'Z', or an offset in the form +HH:MM or -HH:MM timezone="local"