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
require('dotenv').config() | |
const { promisify } = require('util') | |
const mysql = require('mysql'); | |
const fs = require('fs'); | |
const db = { | |
database: process.env.DATABASE, | |
host: process.env.DB_HOST, | |
user: process.env.DB_USER, | |
password: process.env.DB_PASS, |
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
require('dotenv').config() | |
const ftp = require('ftp') | |
const fs = require('fs') | |
const { promisify } = require('util') | |
const env = { | |
host: process.env.FTP_HOST, | |
user: process.env.FTP_USER, | |
password: process.env.FTP_PASS, | |
folder: process.env.FTP_FOLDER || '/' |
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
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
OlderNewer