This file contains 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
upstream app_server { | |
server 10.138.0.3:8080; | |
} | |
server { | |
listen 80; | |
index index.html; | |
server_name xx.xxx.xxx.xx; | |
root /home/dev/PROJECT-NAME/current/public; | |
location / { |
This file contains 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
# config valid only for current version of Capistrano | |
lock '3.4.0' | |
set :branch, 'master' | |
set :application, 'PROJECT-NAME' | |
set :repo_url, 'git@bitbucket.org:xx/xxxx.git' | |
set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" } | |
set :whenever_roles, [:cron] | |
set :ssh_options, { :forward_agent => true } |
This file contains 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
env = ENV["RAILS_ENV"] || "development" | |
if env == "production" | |
app_dir = "PROJECT-NAME" | |
worker_processes 4 | |
end | |
listen 8080, reuseport: true | |
preload_app true | |
timeout 30 |
This file contains 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
URL : DOMAIN_NAME/feedbacks/create_with_array | |
REQUEST PARAMS : | |
{ | |
"feedback"=>{ | |
"0"=>{ | |
"rating"=>"5", | |
"comments"=>"LorneLipusm", | |
"order_id"=>"185", | |
"waiter_id"=>"16" | |
}, |