This file contains hidden or 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
def respond(body: nil, status: 200, serializer: nil, each_serializer: nil) | |
if serializer.present? | |
render json: body, status: status, serializer: serializer | |
elsif each_serializer.present? | |
render json: body, status: status, each_serializer: each_serializer | |
else | |
render json: HashConverter.to_camel_case(body.as_json), status: status | |
render json: HashConverter.to_camel_case(body.as_json.merge!(meta)), status: status | |
end | |
end |
This file contains hidden or 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
import React, { useState, useEffect } from 'react' | |
import PropTypes from 'prop-types' | |
import styled from 'styled-components' | |
const StyledWrapper = styled.div` | |
` | |
const $TM_FILENAME_BASE$ = ({ $props$ }) => { | |
This file contains hidden or 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 { | |
# Path to Puma SOCK file, as defined previously | |
server unix:/home/deploy/appname/shared/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /home/deploy/appname/public; |
This file contains hidden or 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
# Min and Max threads per worker | |
threads 1, 50 | |
workers 3 | |
app_dir = File.expand_path("../..", __FILE__) | |
app_name = 'app_name' | |
app_dir = "/var/www/#{app_name}" | |
shared_dir = "/var/www/#{app_name}/shared" | |
# Default to production |
NewerOlder