Last active
          December 24, 2015 00:09 
        
      - 
      
- 
        Save skinofstars/6714637 to your computer and use it in GitHub Desktop. 
    deploy cold override for db migrations
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | namespace :deploy do | |
| desc "Override deploy:cold to include database setup" | |
| task :cold do | |
| before :run_migrations do | |
| capifony_pretty_print "--> Creating database" | |
| run "#{release_path}/app/console mygreatdbcommand:database:create-once" | |
| capifony_puts_ok | |
| end | |
| update | |
| start | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment