set :stage, :production

set :user, 'root'

role :app, '162.243.221.218'
role :web, '162.243.221.218'
role :db,  '162.243.221.218', primary: true

set :stage, :production

set :user, 'deployer'
set :use_sudo, false

role :app, '162.243.221.218'
role :web, '162.243.221.218'
role :db,  '162.243.221.218', primary: true

Deploy with deployer user not root.
Deploy with deployer user not root.