Shipit-cli - Command line utility to execute shipit scripts.
shipit-deploy - Npm to do actual code movement and publishing.
shipit-npm - Npm to install npms on servers during deployment.
shipit-shared - Npm to access symlinks file and directory on servers.
module.exports = function (shipit) {
require('shipit-deploy')(shipit);
require('shipit-shared')(shipit);
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
import http from 'http'; | |
import morgan from 'morgan'; | |
import express from 'express'; | |
import bodyParser from 'body-parser'; | |
import cluster from 'cluster'; | |
import { setRouter } from './route'; | |
const app = express(); | |
let workers = []; |
npm install --save socket.io
---------------------------------SERVER CODE START------------------------------------------
var express = require('express');
var app = express();
var server = http.createServer(app);
io = require("socket.io").listen(server);
server.listen(3000)
ssh remote_host
The remote_host in this example is the IP address or domain name that you are trying to connect to.
This command assumes that your username on the remote system is the same as your username on your local system.
If your username is different on the remote system, you can specify it by using this syntax:
# mongoid.yml
development:
clients:
default:
database: test
hosts:
- localhost:27017
ps aux | grep ssh
last |grep "logged in"
ps aux | grep ssh | grep pts/
app.get('/login', function(req, res, next) {
passport.authenticate('local', function(err, user, info) {
if (err) { return next(err); }
if (!user) { return res.redirect('/login'); }
req.logIn(user, function(err) {
if (err) { return next(err); }
return res.redirect('/users/' + user.username);
});
})(req, res, next);
openssl genrsa 2048 > SSL.pem
openssl req -new -key SSL.pem -out CSR.pem
``````````````````````````````````````
NewerOlder