Firstly I had to adjust the HEAD of my bare repo with some brute force like:
git push --force origin 688ec48e36b747b3820d55925268f51978be96d0:master
After my server bare repo was up-to-date again I could go for a closer look at capistrano and deploying my rails app.
Do this on your server to get some idea of the problem:
tail -n 30 log/production.log
It will give you the latest 30 lines of log output.
For me it were two things:
Now my app works fine again, altough I found some other unclean code on the way but after setting precompiling away from the *wildcard* but specific files it worked fine; --trace is your friend.
git push --force origin 688ec48e36b747b3820d55925268f51978be96d0:master
After my server bare repo was up-to-date again I could go for a closer look at capistrano and deploying my rails app.
Do this on your server to get some idea of the problem:
tail -n 30 log/production.log
It will give you the latest 30 lines of log output.
For me it were two things:
- precompiling did not work:
I had to have a closer look at my deploy.rb etc and found some big mistakes of mine. I precompiled everything and some was already done so it had e.g. sass variables and the compiler collapsed.
Just try this to see if you app runs fine:
RAILS_ENV=production bundle exec rake assets:precompile --trace - my server app just had empty sqlite3 files so my migration did not work:
Log into your server and have a look or do some migrations manually.
I read this and changed my deploy.rb file so cap deploy:migrate is run everytime:
capistrano guide
capistrano tweak
Now my app works fine again, altough I found some other unclean code on the way but after setting precompiling away from the *wildcard* but specific files it worked fine; --trace is your friend.
Kommentare
Kommentar veröffentlichen