Also see: AWS CLI Setup
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 fs = require('fs'); | |
const yargs = require('yargs'); | |
const { Argv } = yargs; | |
const { promisify } = require('util'); | |
const { resolve } = require('path'); | |
const exists = promisify(fs.exists); | |
const readFile = promisify(fs.readFile); | |
const writeFile = promisify(fs.writeFile); |
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
## Amazon Linux 2 ## | |
sudo yum update -y | |
sudo amazon-linux-extras install lamp-mariadb10.2-php7.2 nginx1.12 | |
sudo yum install -y mariadb-server | |
sudo systemctl enable php-fpm | |
sudo systemctl enable nginx | |
sudo systemctl enable mariadb |
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 translate = (message) => { | |
if (typeof message !== 'object') return message; | |
return this.context.intl.formatMessage(message); | |
}; |