Skip to content

Instantly share code, notes, and snippets.

View viktor-shmigol's full-sized avatar

Viktor Shmigol viktor-shmigol

View GitHub Profile
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;
$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...'
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