- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- If applied, this commit will ...
- Wrap the body at 72 characters
- Use the body to explain what and why vs how
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This file should be located at: | |
# `my-project/docker-compose-init/create-multiple-postgresql-databases.sh` | |
# https://github.com/mrts/docker-postgresql-multiple-databases | |
set -e | |
set -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = ({ env }) => ({ | |
defaultConnection: 'default', | |
connections: { | |
default: { | |
connector: 'bookshelf', | |
settings: { | |
client: 'postgres', | |
host: env('DATABASE_HOST', 'localhost'), | |
port: env('DATABASE_PORT', 5432), | |
database: env('DATABASE_NAME', 'strapi'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { sanitizeEntity } = require('strapi-utils'); | |
module.exports = { | |
async upload(ctx) { | |
const { | |
request: { files: { files } = {} }, | |
} = ctx; | |
const uploadedFiles = await strapi.plugins.upload.services.upload.upload({ | |
data: {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// config/hook.js | |
module.exports = { | |
settings: { | |
"timeout": 3000, | |
"load": { | |
"before": [], | |
"order": [ | |
"Define the hooks' load order by putting their names in this array in the right order" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const es = require('./es'); | |
const en = require('./en'); | |
const newKeys = Object.keys(en).filter(x => !Object.keys(es).includes(x)); | |
newKeys.forEach(key => { | |
es[key] = en[key]; | |
}); | |
console.log(es); |