I installed SwitchTower yesterday and had a couple of problems. I’m
not sure if they are known bugs, but if not, FYI; of course it’s
possible that I missed something.
1 - SwitchTower did not create the “shared” directory by default as
stated in the documentation. More importantly, the shared/log
directory was not created automatically, which is problematic since
SwitchTower created symbolic links to this directory.
Setting the shared_dir variable explicitly in the deploy.rb file did
not fix this. As a result the application would not start until we
manually created the ourapp/shared/log directory.
2 - According to the documentation, we have many after_ and before_
tasks. Thus we attempted to work around the non-creation of the
shared_dir by implementing after_setup in config/deploy.rb.
No dice â?? it was never executed; maybe we needed to explicitly call it
somehow, be we haven’t figured it out yet (please let me know if you
know how). We ended up implementing after_update_code instead.