- Ensure you can
ssh user@targetserver
successfully- Public/private keys are a smart choice here
- On
targetserver
- Example here assumes all Git repository users are members of a
gitusers
group, adjust to suit mkdir -p ~/path/to/repository
cd ~/path/to/repository
git init --bare --shared=group
- Example here assumes all Git repository users are members of a
- Switch
--shared=group
will addcore.sharedrepository = 1
to the repositories~/path/to/repository/config
file
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 (PassportUserCredential) { | |
/* | |
* Check if credentials already exist for a given provider and external id | |
* Enable this hook if credentials can be linked only once | |
* | |
* @param Loopback context object | |
* @param next middleware function | |
* */ | |
PassportUserCredential.observe('before save', function checkPassportUserCredentials(ctx, next){ |
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 mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/app'); | |
var usrSchema = new mongoose.Schema({ | |
user: { type: String, required: true }, | |
password: { type: String, required: true }, | |
DLU: { type: Date } | |
}); | |