Tutorial

Used tutorial

Important

env variables needs to be added in /etc/environment so it is accessed throughout the whole system. Then Capistrano will pick up these envs an use it

More details here: https://stackoverflow.com/questions/23672631/capistrano-and-environment-variables