Added bundle install without sudo. Also fixed server permissions so www-data can execute git