Giter VIP home page Giter VIP logo

legux's Introduction

Legux

Management application

Installation

  1. Download and install Ruby. Download Ruby
  • Install Ruby (if installing on Windows make sure to choose 'C:/' as your base path and not 'Program Files')
  1. Install the Bundler gem. Bundler
  • gem install bundler
  1. Download mySQL
  1. Clone the repository and go to the folder where you downloaded it
  • cd legux
  • configure database/create.rb to use the Port, User and Password of your local database
  1. Run Bundler in order to download the other required gems for the app
  • Run it using the command prompt/terminal with Ruby
  • bundle install
  1. Run the application

Deployment in Heroku

  1. Make sure to have your Gemfile and require dependencies to PostgreSQL (gem 'pg')
  2. Login to Heroku heroku login using your Git Bash
  • If a site hasn't been created heroku create
  1. Deploy your code
  • git push heroku master
  • git push heroku yourbranch:master
  1. Make sure to have the PostgreSQL available by typing heroku addons
  • If a DB is not available create one with heroku addons:add heroku-postgresql:dev
  • And promote it to the environment varialbe DATABASE_URL by running heroku pg:promote HEROKU_POSTGRESQL_<NAME>_URL
  • More information
  1. Start dyno so your application can be available on the web heroku ps:scale web=1
  • When not using it, make sure to change it back to 0. Heroku provides a limited number of free hours a month
  • Check the status with heroku ps
  • Open the logs with heroku logs

If you have issues installing the JSON gem

  1. Download Development Kit
  • Unzip the file and open a command prompt on that folder
  • ruby dk.rb init
  • ruby dk.rb install
  • gem install json

legux's People

Contributors

rodrigomunoz avatar

Watchers

James Cloos 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.