Skip to content

Instantly share code, notes, and snippets.

##Sendy on OpenShift

You can deploy Sendy on a free OpenShift using the following instructions.

##Steps

Thise are instructions for setting up the sendy server, you will still need to set everything else up as described in get started [https://sendy.co/get-started].

  1. Signup for a free Redhat OpenShift [https://www.openshift.com/] account
  2. Add a application and select a PHP cartridge, I used non scaling PHP 5.4.
@wootwoot1234
wootwoot1234 / app.js
Created August 11, 2017 17:59
passport-local-mongoose upgrade strategy toubleshoot
// dependencies
var path = require('path');
var express = require('express');
var http = require('http');
var mongoose = require('mongoose');
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var bodyParser = require('body-parser');
var MongoStore = require('connect-mongo')(express);
var timeout = express.timeout;
@wootwoot1234
wootwoot1234 / index.js
Last active May 5, 2021 03:24 — forked from blex18/index.js
SO_67375281
const mongoose = require('mongoose');
const moment = require('moment');
const Schema = mongoose.Schema;
const user = process.env.SO_USER;
const pass = process.env.SO_PASS;
const uri = process.env.SO_URI;
const throng = require('throng')