Skip to content

Instantly share code, notes, and snippets.

@wenming
Created January 6, 2013 21:20
Show Gist options
  • Save wenming/4470320 to your computer and use it in GitHub Desktop.
Save wenming/4470320 to your computer and use it in GitHub Desktop.
REM install the redist so that openssl will not complain w/vc9 -- could use %ROLEROOT% here
vcredist_x86.exe /q
REM set a path for openssl and freetds
SET PATH=%PATH%;E:\lib\freedts;E:\lib\openssl
REM Download directly from rubyinstaller.org
E:
powershell -c "(new-object System.Net.WebClient).DownloadFile('http://rubyforge.org/frs/download.php/75894/railsinstaller-2.1.0.exe', 'railsinstaller.exe')"
REM install silently
railsinstaller.exe /verysilent /dir="%RUBY_PATH%" /tasks="assocfiles,modpath"
REM remove any tiny tds copies
for /d %%a in (%RUBY_PATH%\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\tiny_tds*) do rd %%a /q
cd site
REM unzip the rails application
7z x site.7z
REM install all of the gems
bundle install
REM copy the gems from
cd %RUBY_PATH%\Ruby1.9.3\lib\ruby\gems\1.9.1\gems
xcopy E:\lib\gems /e
E:
cd \site
bundle exec rails s thin -p 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment