fix production environment and added capistrano implementation