- Ensure you can
ssh user@targetserversuccessfully- Public/private keys are a smart choice here
- On
targetserver- Example here assumes all Git repository users are members of a
gitusersgroup, adjust to suit mkdir -p ~/path/to/repositorycd ~/path/to/repositorygit init --bare --shared=group
- Example here assumes all Git repository users are members of a
- Switch
--shared=groupwill addcore.sharedrepository = 1to the repositories~/path/to/repository/configfile
This file contains hidden or 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 hidden or 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 } | |
| }); | |