I am having trouble to detect that this is the first attempt of deployment after a server instance is booted. I need to run the command rake db:seed only the first time to set the default users and other details in database. I have no idea if this is possible.
can anybody help me please
The best way to find out is by sending
--extra-deploy-hook-optionswhile running deployment command and check in theafter_migrate.rbifconfig[:initial]is present or not. The command would look likeafter_migrate.rb hook will looks like:
For more information
ey help deploy