Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
My notes for Dokku on Digital Ocean.
These may be a bit outdated: Since I originally wrote them, I've reinstalled on a newer Dokku and may not have updated every section below.
Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).
# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
| describe "Shopping Cart Requests" do | |
| let!(:user) { Fabricate(:user) } | |
| before(:each) do | |
| login_user_post("admin", "admin") | |
| end | |
| context "when I visit the shopping cart" do | |
| it " show the logged in users' cart items " do | |
| #Test stuff |
| jQuery -> | |
| $('[id^="best_in_place_your_object_"],[id$="address"]').on 'best_in_place:update', (event) -> | |
| $address = $(event.target) | |
| $address.data('bestInPlaceEditor').original_content = $address.html() | |
| $address.html $address.html().replace(/[\n\r]+/g, '<br>') |
| class Deploy < Thor | |
| default_task :s3 | |
| desc "cleanS3test", "delete current | |
| deploy" | |
| def cleanS3test | |
| puts "Deleting current deploy..." | |
| system "s3cmd -r -f del s3://www.example.com/" | |
| puts "Done" |