Skip to content

Instantly share code, notes, and snippets.

@breim
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breim/44b021aec66502e38385 to your computer and use it in GitHub Desktop.
Save breim/44b021aec66502e38385 to your computer and use it in GitHub Desktop.
Rails server on Digital Ocean
Rodar webbrick em todas as pastas da sua maquina ;)
ruby -run -ehttpd . -p8000
#processador de imagens => sudo apt-get install imagemagick
#mysql2 need => sudo apt-get install libmysql-ruby libmysqlclient-dev
#MYSQL SERVER => sudo apt-get install mysql-server
#Nood js => sudo apt-get install nodejs
#Lib Java Runtime => sudo apt-get install libv8-dev
Start rails:
rvmsudo passenger start -e production -p 80 --user=deploy
export rvmsudo_secure_path=1
elasticsearch as service
https://gist.github.com/wingdspur/2026107
sudo service elasticsearch start
-- importar os produtos
rake environment tire:import CLASS='Anuncio' FORCE=true
Tutorial git+rails+ruby
https://coderwall.com/p/yz8cha
tutorial passenger+nginx
http://www.akitaonrails.com/2012/08/13/ruby-e-rails-no-ubuntu-12-04-lts-precise-pangolin#.Uo2K9njyPI8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment