app_dir = /home/deploy/app_name
https://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/
Fetch Order via API | |
Auth | |
200 -> xport | |
xport | |
200 -> xpost | |
xpost | |
404 -> Auth |
def hello_world(name) | |
puts "Hello, #{name}!" | |
end | |
hello_world("ghost") # Hello, Ghost! |
#!/bin/bash | |
osascript -e "display notification with title \"Start Pomodoro!\" sound name \"Hero.aiff\"" && \ | |
sleep 1500 && \ | |
osascript -e "display notification with title \"Pomodoro Break!\" sound name \"Hero.aiff\"" && \ | |
sleep 300 && \ | |
# sleep 900 && \ # Uncomment for long breaks; | |
osascript -e "display notification with title \"Pomodoro Break Done!\" sound name \"Hero.aiff\"" |
upstream app_name { | |
server unix:///home/deploy/app_name/shared/pids/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /home/deploy/app_name/current/public; |