GithubHelp home page GithubHelp logo

dcreager / deploy-gitorious Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rphillips/deploy-gitorious

2.0 2.0 0.0 120 KB

Fabric deployment script for gitorious

License: Apache License 2.0

Python 100.00%

deploy-gitorious's Introduction

Credits
-------

Big thank you to Christian Johansen for such a great install walkthru.
http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server

Gitorious Fabric Author
-----------------------

Ryan Phillips <ryan at trolocsis.com>

License
-------

Apache License

Tested On
---------

- Ubuntu Server 10.04
- EC2 - Ubuntu 10.04 - http://alestic.com/

Install Fabric
--------------

# virtualenv --distribute --no-site-packages env
# pip install -E env -r requirements.txt
# source env/bin/activate

Prerequisites
-------------

1. An ssh key pushed to a server for a user
2. The user on the server must have NOPASSWD: ALL set in the /etc/sudoers file
   to ignore the password prompt for sudo.

Setting up SITE_NAME and SITE_EMAIL
-----------------------------------

edit fabfile.py change the SITE_NAME to a reasonable FQDN. In addition, make
sure to setup your email address in SITE_EMAIL.

Setup database.yml
------------------

The database.yml file needs to know your database password. The `fab deploy`
command will prompt you for a password. Make sure both of these passwords
match.

Run the deploy
--------------

# fab -H hostname -u user deploy

Connecting to your running gitorious
------------------------------------

1a. Setup DNS, or
1b. edit /etc/hosts and add the IP and FQDN to your hosts file
2. Browse to the FQDN

Email setup
-----------

Google for a howto on setting up email. Gitorious is setup to use a sendmail
compatible server... Postfix works.

Setting up your first user
--------------------------

make sure email is setup first on your server
ssh to the server
cd /var/www/[SITE_NAME]/gitorious
env RAILS_ENV=production ruby script/create_admin
ENV RAILS_ENV=production script/console
> user = User.first
> user.login = "username" # Change to your desired username
> user.activate
> user.accept_terms
> user.save

deploy-gitorious's People

Contributors

rphillips avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.