Skip to content

Instantly share code, notes, and snippets.

View dipaktc's full-sized avatar

Dipak Panchal dipaktc

  • TechCompose Solutions Pvt. Ltd.
  • Gujarat
View GitHub Profile
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 / {
# 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 }
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
URL : DOMAIN_NAME/feedbacks/create_with_array
REQUEST PARAMS :
{
"feedback"=>{
"0"=>{
"rating"=>"5",
"comments"=>"LorneLipusm",
"order_id"=>"185",
"waiter_id"=>"16"
},