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
git diff master --name-only > deploy.txt | |
tar -czvf nome-pack.tar.gz -T deploy.txt |
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 = function(app) | |
{ | |
var controller = | |
{ | |
users : function(req, res) | |
{ | |
res.render( 'users/index' ); | |
}, | |
add : function(req, res) | |
{ |
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
var sequelize = require('sequelize'); | |
var mysql = require('mysql'); | |
module.exports = function( p_url ) | |
{ | |
sequelize = new sequelize(p_url); | |
sequelize.authenticate() | |
.then(function(){ | |
console.log('Connection has been established successfully.'); |
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
var express = require('express'); | |
var load = require('express-load'); | |
var bodyParser = require('body-parser'); | |
var namespace = require('express-namespace'); | |
module.exports = function() | |
{ | |
var app = express(); | |
app.set('port', process.env.PORT || 3000); |
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
var app = require('./config/express')(); | |
require('./config/database')('mysql://root:root@127.0.01:3306/auction'); | |
app.listen | |
( | |
app.get('port'), | |
function() | |
{ | |
console.log(`Express Server on port ${app.get('port')}`); | |
} |
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
var sequelize = require('Sequelize'); | |
module.exports = function() | |
{ | |
console.log(Sequelize); | |
var User = sequelize.define | |
( | |
'users', | |
{ | |
id : |