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
    
  
  
    
  | server { | |
| listen 9000 default_server; | |
| listen [::]:9000 default_server ipv6only=on; | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| # Make site accessible from http://localhost/ | |
| server_name localhost; | |
  
    
      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
    
  
  
    
  | $scope.download = (url) -> | |
| filename = url.split('/').pop() | |
| url = encodeURI(url) | |
| if ionic.Platform.isIOS() | |
| directory = cordova.file.documentsDirectory | |
| else | |
| directory = "#{cordova.file.externalRootDirectory}Download/" | |
| document.addEventListener 'deviceready', (-> | |
| $ionicLoading.show template: 'Loading...' | 
  
    
      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
    
  
  
    
  | 1) Need to open port 28080 for security group | |
| 2) add gem 'puma' | |
| 3) create file deploy/after_restart.rb: | |
| execute 'actionCable' do | |
| cwd current_release | |
| command 'bundle exec puma -p 28080 cable/config.ru -e production -d' | |
| end | 
NewerOlder