Code Monkey home page Code Monkey logo

railsinstaller-windows's Introduction

RailsInstaller

Rails development environment installer for Windows.

Overview

The goal of this project is to generate an installer that when run installs all of the most common components for a Rails development environment with no required prerequisites on a Windows system.

How to Contribute

RailsInstaller project code repository is located on GitHub and is bootstrapped, built and packaged via rake tasks.

  1. Download and install the latest RailsInstaller.

  2. Download and install latest Inno Setup Quick Start Pack, add iscc.exe in your PATH

  3. Fork the RailsInstaller project on github into your own GitHub account.

  4. Open the the command prompt from the start menu and change directory to where you like to keep your projects.

  5. Clone your fork of the project.

    git clone https://github.com/{{your GitHub user name}}/railsinstaller-windows.git
    cd railsinstaller-windows
  6. Update from origin master branch and checkout a new topic branch for your feature/bugfix.

    git checkout master
    git pull origin master
    git checkout -b mybranchname
  7. Bootstrap the project. From the project root run:

    rake bootstrap
  8. Implement your new feature and/or fix your bug in your newly forked Railsinstaller project code.

  • The configuration file for specifying required packages can be found at config/railsinstaller.yml.

  • Building of the installer into the stage path for packaging is implemented by Ruby code in the lib/ directory, starting with the file lib/railsinstaller/actions.rb.

  • Methods called by the actions.rb file are implemented by lib/railsinstaller/methods.rb.

  1. Next build all components onto the stage (into the stage/ directory)

    rake build
  2. Use Inno Setup to package the installer into an executable (.exe) for testing/distribution.

    SET PATH=C:\Program Files\Inno Setup 5;%PATH%
    rake package
  • This creates the executable (.exe) package file in the pkg/ directory from the files staged during the build process in the stage/ directory.

  • NOTE - You can run the package task with --trace for debugging output if the package fails to build or if you simply want to see what is being done as it is done).

  1. Once you have verified your new feature/bug-fix, push your branch up to GitHub.

    git commit -a -m "Implemented featureX/bugfixX which <description>..."
    git push origin mybranchname
  2. Now issue a pull request on GitHub.

RailsInstaller Components

The next few sections detail the core components that make up RailsInstaller.

Ruby 2.0.0 on Windows

RubyInstaller is a self contained package installer which installs Ruby and RubyGems on a windows system, head over to http://rubyinstaller.org/ for more information.

Development Kit (DevKit)

A MSYS/MinGW based toolkit that enables RailsInstaller to build native C/C++ packages, both for Ruby and gems. DevKit is built and maintained by the wonderful folks over at the RubyInstaller project.

Git

The git version that is bundled into RailsInstaller is msysgit.

Packaging/Installer

We are using Inno Setup, a free installer for Windows programs.

railsinstaller-windows's People

Contributors

wayneeseguin avatar xhmikosr avatar luislavena avatar emachnic avatar drnic avatar luigidr avatar tricknotes avatar metaskills avatar mpapis 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.