Created
          September 5, 2019 18:18 
        
      - 
      
- 
        Save carlesjove/1778fcf85e078df370bcdba6ef8dd406 to your computer and use it in GitHub Desktop. 
    Runs a script from your computer and outputs in a file
  
        
  
    
      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
    
  
  
    
  | heroku run rails c --no-tty --app APP < FILE_PATH > OUTPUT_PATH | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Example:
heroku run rails c --no-tty --app APP < script.rb > output.txt