Much in common with http://www.snip2code.com/Snippet/159602/Using-Dokku-to-deploy-a-Rails-Applicatio
Initialize droplet via https://www.digitalocean.com/community/tutorials/how-to-use-the-dokku-one-click-digitalocean-image-to-run-a-ruby-on-rails-app
| class Contact < ActiveRecord::Base | |
| ... | |
| def after_create | |
| if Hook.hooks_exist?('new_contact', self) | |
| Resque.enqueue(Hook, self.class.name, self.id) | |
| # To trigger directly without Resque: Hook.trigger('new_contact', self) | |
| end | |
| end |
| # Path to Oh My Fish install. | |
| set -gx OMF_PATH /Users/augusts/.local/share/omf | |
| source $OMF_PATH/init.fish | |
| # Path to your oh-my-fish. | |
| set PATH /Applications/Postgres.app/Contents/Versions/9.4/bin $PATH | |
| set PATH ~/bin $PATH | |
| set PATH /usr/local/bin $PATH | |
| set -x RACK_ENV development | |
| set -x EDITOR atom |