Using Bitrock to distribute Ruby on Rails application

Comments

3 comments

  • Avatar
    ridruejo

    Hi Jason, we replied separately via email. Basically the easiest way would be to ask users to install first RubyStack and then run your installer, or you can bundle the RubyStack installer with your app and install it in unattended mode.

  • Avatar
    anandm

    Hi, I wish to package my Rails app for Windows with the Ruby Stack too. Please can you share the instructions, it would be very handy to get stared with the Install Builder.

  • Avatar
    juanjo

    I you bundle the rubystack installer, deploying it in unattended mode would be as easy as including the below code in your <componentList>:

        <component>
            <name>rubystack</name>
            <description>RubyStack</description>
            <canBeEdited>0</canBeEdited>
            <selected>1</selected>
            <show>1</show>
            <folderList>
                <folder>
                    <description>RubyStack Windows</description>
                    <destination>${installdir}/tmp/</destination>
                    <name>rubystackWindows</name>
                    <platforms>windows</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>path/to/rubystack.exe</origin>
                        </distributionFile>
                    </distributionFileList>
                    <actionList>
                         <showProgressDialog>
                            <actionList>
                               <runProgram program="${installdir}/tmp/rubystack.exe">
                                  <programArguments>--prefix "${installdir}/rubystack" --mode unattended --base_password ${password}</programArguments>
                               </runProgram>
                            </actionList>
                         </showProgressDialog>    
                    </actionList>
                </folder>
            </folderList>
        </component>
    

Please sign in to leave a comment.