Skip to content

Instantly share code, notes, and snippets.

View SunnyMagadan's full-sized avatar

Alexey Zhaboyedov SunnyMagadan

View GitHub Profile
module OperationResult
def Success(value)
Results::Success.new(value)
end
def Failure(value)
Results::Failure.new(value)
end
module Results
@SunnyMagadan
SunnyMagadan / project-name.conf
Last active August 19, 2020 12:50
Unicorn + Nginx + RoR configs
upstream project-name {
server unix:/var/www/project-name/current/tmp/sockets/project-name.socket;
}
server {
listen 80;
server_name my-project-name-host.com;
root /var/www/project-name/current/public;
# individual nginx logs for this vhost