Comit is an bloging platform backed by Git. Write, commit and push your publications online. Comit use Markdown markup language to convert your papers into blog posts.
- Clone the repository
git clone git://github.com/garnieretienne/comit.git - Create a Github application and put credentials into an
.envfile
GITHUB_KEY=XXXXXXXXXXXX GITHUB_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
4. Install system dependencies (Redis)
`sudo apt-get install redis` on debian / ubuntu
3. Install gem dependencies
`bundle install`
4. Run database migration
`bundle exec rake db:migrate`
4. Start the application
`bundle exec foreman start`
## Create an user manually (no open registration during beta)
`bundle exec rails console`
irb> me = User.new name: 'Your name' irb> me.provider = :github irb> me.uid = 'xxxxxx' # find your github uid: http://caius.github.com/github_id/ irb> me.save
You can now login using this github user.
# Testing
## Test initialization:
```bash
mkdir tmp
git clone git://github.com/garnieretienne/comit-test.git tmp/comit-test
cp -rf tmp/comit-test tmp/test
cp -rf tmp/comit-test tmp/erased
cp -rf tmp/comit-test tmp/not_ready
git clone tmp/test repositories/test
git clone tmp/erased repositories/erased
rm -rf tmp/erased
bundle exec rake test
rm -rf repositories/*_not_ready
rm -rf repositories/*_comit-test
rm -rf repositories/erased
rm -rf repositories/test
rm -rf tmp/comit-test
rm -rf tmp/test
rm -rf tmp/erasedCopyright (C) 2013 Etienne Garnier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.