Install gems and set PORT environment variable