Skip to content

Instantly share code, notes, and snippets.

@everaldo
Last active December 18, 2015 09:09
Show Gist options
  • Save everaldo/5759656 to your computer and use it in GitHub Desktop.
Save everaldo/5759656 to your computer and use it in GitHub Desktop.
Tutorial: Shopping List
rails g mongoid:config
rm public/index.html app/views/layouts/application.html.erb
rails g formtastic:install
rails g bootstrap:install static # a opção static é porque não queremos usar a gem less-rails
rails g bootstrap:layout # gerar layout
vagrant box add shopping_list https://dl.dropboxusercontent.com/u/73395075/precise-mongo-nginx-vim-rbenv.box
# clone git clone git://github.com/everaldo/shopping_list.git ./
vagrant init shopping_list
# alterações no Vagrantfile
git add .
git commit -m "Created Vagrantfile with port forward and host-only ip address for the VM"
git push origin master
vagrant up ; vagrant ssh
# instalação do rails
gem install rails --version '= 3.2.13'
# sempre que instalar uma nova gem, faça:
rbenv rehash
# alterar .gitignore
git config --global user.name "Everaldo Gomes"
git config --global user.email "[email protected]"
git commit --amend --reset-author
git config --global core.editor vim
git config --global color.ui true
#Comando executado fora da VM, dentro do diretório ShoppingList
rails new . -T -O --skip-bundle
git config --global credential.helper cache
git checkout -b config_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment