Skip to content

Instantly share code, notes, and snippets.

View caioagiani's full-sized avatar
💼
Working at home

Caio Agiani caioagiani

💼
Working at home
View GitHub Profile
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier', 'import-helpers'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
{
"singleQuote": true,
"trailingComma": "es5"
}
{
"execMap": {
"js": "node -r sucrase/register"
}
}
{
"compilerOptions": {
"outDir": "dist",
"target": "ES6",
"module": "CommonJS",
"resolveJsonModule": true,
"esModuleInterop": true
}
}
custom: ["https://nubank.com.br/pagar/"]
{
"name": "",
"main": "",
"version": "",
"keywords": [""],
"license": "MIT",
"description": "",
"repository": {
"type": "git",
"url": "https://github.com/caioagiani"
const { resolve } = require('path');
require('dotenv').config();
module.exports = {
config: resolve(__dirname, 'src', 'config', 'database.js'),
'migrations-path': resolve(__dirname, 'src', 'database', 'migrations'),
'seeders-path': resolve(__dirname, 'src', 'database', 'seeds'),
};
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Node.js app to Azure Web App - crm-wititlc
on:
push:
branches:
- master
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
server {
server_name testdeploy.rocketseat.com.br;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;