From 41f00048199185cd03cba9d97adf5c256f09562d Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Fri, 20 May 2022 14:24:22 +0200 Subject: [PATCH 1/2] Customize last-updated plugin output --- docs/.vuepress/config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 9c81f4be22..0ec56c6cbc 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -387,6 +387,15 @@ const plugins = [ siteTitle: (_, $site) => $site.title, title: $page => $page.title, }], + ['@vuepress/last-updated', + { + transformer: (timestamp, lang) => { + const date = new Date(timestamp); + const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; + return date.toLocaleDateString('en-US', options) + } + } + ], ['vuepress-plugin-code-copy', { color: '#ffffff', successText: 'Copied to clipboard!', From 2501e2201335adbb9cad65fcbd69c99e38b73d64 Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Thu, 16 Jun 2022 13:45:40 +0200 Subject: [PATCH 2/2] Fix host/socketPath issue (MySQL vs. PostgreSQL) on Google App Engine guide --- .../deployment/hosting-guides/google-app-engine.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/google-app-engine.md b/docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/google-app-engine.md index 5a111f8656..e1607b2426 100644 --- a/docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/google-app-engine.md +++ b/docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/google-app-engine.md @@ -171,7 +171,7 @@ yarn add pg [Google App Engine requires](https://cloud.google.com/sql/docs/postgres/connect-app-engine) to connect to the database using the unix socket path, not an IP and port. -Edit `database.js`, and use the socket path as `socketPath`. +Edit `database.js`, and use the socket path as `socketPath` for a MySQL database or as `host` for a PostgreSQL database. `Path: ./config/env/production/database.js`. @@ -183,7 +183,8 @@ module.exports = ({ env }) => ({ connector: 'bookshelf', settings: { client: 'postgres', - socketPath: `/cloudsql/${env('INSTANCE_CONNECTION_NAME')}`, + host: `/cloudsql/${env('INSTANCE_CONNECTION_NAME')}`, // for a MySQL database + // ⚠️ For a PostgreSQL database, use socketPath: `/cloudsql/${env('INSTANCE_CONNECTION_NAME')}` instead database: env('DATABASE_NAME'), username: env('DATABASE_USERNAME'), password: env('DATABASE_PASSWORD'),