Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Last active November 23, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingo-d/4f777054d2327917e4a96e0e4fae9f58 to your computer and use it in GitHub Desktop.
Save dingo-d/4f777054d2327917e4a96e0e4fae9f58 to your computer and use it in GitHub Desktop.

Unutar rubyja

Konzola binding.pry Exit: exit-program Next: Ctrl+D

bundle exec rails s -b 0.0.0.0 Starta rails I binda za local inspect

Ako zašteka ruby

ps ax | grep rails

i onda iz liste targetirat proces i ubit ga sa

kill -9 xxxxx

Ako projekt ima seeds onda se baza povuče sa

bundle exec rake db:setup

Inače se povuče sa minom...

Manual deploy

bundle exec mina staging/production deploy


Povlačenje baze sa minom

mina staging data_sync:pull

bundle exec mina staging data_sync:pull


Ako ima livereload

bundle exec guard -P livereload


Ako treba u config > settings > development postaviti IP adresu umjesto localhost da bi radilo remote bindanje


rails c (konzola)

Kako vidjeti mailove:

temp_order = Order.last
Mailer::Order.confirmation(temp_order).deliver_now

Treba bit dodan letter_opener gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment