Capistrano - can't deploy my database.yml

前端 未结 3 790
不思量自难忘°
不思量自难忘° 2021-02-08 03:14

When I try to deploy my app with capistrano, I\'ll get this error:

failed: \"sh -c \'cp /var/www/my_app/releases/20120313115055/config/database.stagi

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-08 04:18

    In Capistrano 3, linking files is built-in. John's answer is simply:

    • In the shared/ folder create config/database.yml
    • In config/deploy.rb use this line

      set :linked_files, fetch(:linked_files, []).push('config/database.yml')
      

    This does what John was saying.

提交回复
热议问题