项目作者: armcburney

项目描述 :
:radio: Distributed job management system for registering workers, and scheduling jobs to execute on them
高级语言: Ruby
项目地址: git://github.com/armcburney/conductor.git
创建时间: 2017-09-18T23:24:23Z
项目社区:https://github.com/armcburney/conductor

开源协议:MIT License

下载


Conductor

📻 Written by — Andrew Codispoti, Adam Klen, Andrew McBurney, Dave Pagurek Van Mossel


Development Setup

Mac Setup

  1. Intstall brew

    1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install rbenv and other dependencies

    1. brew install rbenv
    2. brew install postgres
    3. brew install redis
  3. Start Postgres and Redis

    1. brew services start postgresql
    2. brew services start redis
  4. Install nodejs, npm, and yarn
    ```shell

    Install nodejs and npm

    brew install node

Install yarn

brew install yarn

  1. #### Ubuntu 16.04 Setup
  2. 1. Update apt-get
  3. ```shell
  4. sudo apt-get update
  1. Install dependencies for rbenv

    1. sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev libpq-dev ruby-sidekiq
  2. Install rbenv

    1. git clone https://github.com/rbenv/rbenv.git ~/.rbenv
  3. Add ~/.rbenv/bin to your $PATH

    1. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    2. echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  4. Install ruby-build for rbenv install command

    1. git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
  5. Install nodejs, npm, and yarn
    ```shell

    Install nodejs

    sudo apt-get install nodejs nodejs-legacy

Install npm

sudo apt-get install npm

Install yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

  1. #### General Setup
  2. 1. Install Ruby 2.4.1
  3. ```shell
  4. rbenv install 2.4.1
  5. rbenv shell 2.4.1
  6. rbenv rehash
  1. Install bundler (package manager), and rubocop (linter)

    1. gem install bundler
    2. gem install rubocop
  2. Install all dependencies

    1. bundle install
  3. Create development and test databases

    1. bin/rails db:create
  4. Start the server on http://localhost:5000/

    1. foreman start

Production Deploys

  1. Add the heroku remote

    1. heroku git:remote -a conductor-se464
  2. Push your branch

    1. git push heroku your_branch:master

Program Output Server-Side

Program Output