Where do you put your app-config-files when deploying rails with capistrano and svn

后端 未结 2 2149
悲&欢浪女
悲&欢浪女 2021-02-09 09:24

I have two config-files

/app/config/database.yml

and

/app/config/userconfig.yml

i don\'t want to put the data

2条回答
  •  后悔当初
    2021-02-09 10:19

    In Capistrano v3, you can use a task called deploy:symlink:shared.

    Provide a list of files you placed in the shared directory, so Capistrano knows which files to symlink when the task is run. This is typically done in deploy.rb:

    set :linked_files, %w{
      app/config/database.yml
      app/config/userconfig.yml
    }
    

    Related: Capistrano - How to put files in the shared folder?

提交回复
热议问题