Skip to content

Instantly share code, notes, and snippets.

@clyfe
Created August 2, 2011 09:13
Show Gist options
  • Save clyfe/1119866 to your computer and use it in GitHub Desktop.
Save clyfe/1119866 to your computer and use it in GitHub Desktop.
1. Folosim ruby 1.9.2p190 de aici http://rubyinstaller.org/
Pentru NSIS fol comanda:
# https://github.com/oneclick/rubyinstaller/wiki/FAQ#wiki-silent_install
# very silent install to custom dir with file associations and PATH update
c:\>rubyinstaller.exe /verysilent /dir="d:\rubyABC" /tasks="assocfiles,modpath"
2. Pentru rulare ca serviciu folosim mongrel & mongrel_service (gemuri). Ai grija sa le pui ca dependinte pe production.
3. Inainte de a impacheta serverul de aplicatie (gislog) instalam toate dependintele si le vendorizam:
# http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/
bundle install --path vendor
bundle package
echo 'vendor/ruby' >> .gitignore # unless already did this
4. Pentru rulare ca serviciu urmam http://matthewclosson.posterous.com/rails-as-a-windows-service-on-ruby-19
C:\path\to\app\server\gislog\>mongrel_rails service::install -N gislog -D "GIS Data Entry Logs" -e production -p 8080 -C C:\path\to\app\server\gislog
# See also
# C:\myrubies\>mongrel_rails help
# C:\myrubies\>mongrel_rails service::install -h
# C:\myrubies\>mongrel_rails service::uninstall -h
5. Acum putem impacheta installerul. Dupa instalare trebuiesc rulate cateva comenzi de kikstart:
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment