How do you call db:seed on AWS Elastic Beanstalk apps?

后端 未结 5 712
挽巷
挽巷 2021-02-07 14:18

I know that you can run tasks as part of each deploy, but I only want to bootstrap the database once.

5条回答
  •  再見小時候
    2021-02-07 14:47

    The only way I found was to ssh into the ec2 instance and run "rake db:seed RAILS_ENV=production" manually from /var/app/current.

提交回复
热议问题