Added guard for Rake tasks

Running `rake db:migrate` wont start up Vanity