Code Monkey home page Code Monkey logo

artifactor's Introduction

  1. Install Homebrew

     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Update Homebrew

     brew update
    
  3. Install PostgreSQL

     brew install postgres
    
  4. Install Redis

     brew install redis
    
  5. Install ImageMagick

     brew install imagemagick
    
  6. Install Qt

     brew install qt
    
  7. Install the Heroku Toolbelt

     brew install heroku-toolbelt
    

Installing the Ruby dependencies

  1. Install chruby

     brew install chruby
    
  2. Configure chruby

     echo 'source /usr/local/share/chruby/chruby.sh' >> ~/.bash_profile
     echo 'source /usr/local/share/chruby/auto.sh' >> ~/.bash_profile
     source ~/.bash_profile
    
  3. Install ruby-install

     brew install ruby-install
    
  4. Install Ruby

     ruby-install ruby 2.2.2
    
  5. Configure a default Ruby

     echo '2.2.2' >> ~/.ruby-version
    

Installing the application dependencies

  1. Clone the repository

     git clone https://....git
    
  2. Change the working directory

     cd ......
    
  3. Install Bundler

     gem install bundler
    
  4. Install the gem dependencies

     bundle install --path vendor/bundle --without production staging
    
  5. Stop any postgres services

     `ps aux | grep postgres`
    

If postgres is running from brew: brew services stop postgresql

6 Create a Postgres database

    pg_ctl init -D db/postgres
    OR
    /usr/lib/postgresql/9.3/bin/initdb -D db/postgres
  1. Create a Redis directory

     mkdir db/redis
    

Configuring the application

  1. Create and edit config/database.yml

     cp config/database.yml.example config/database.yml
    

Seeding the database

  1. Launch the system services

     bundle exec foreman start -f Procfile.sys
    

Launching the application

  1. Launch the application services

     bundle exec foreman start -f Procfile.app
    
  2. Visit the web application

     open http://0.0.0.0.xip.io:5000
    
  3. Visit the mailcatcher application

     open http://localhost:1080
    

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.