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
version: 2 | |
jobs: | |
build: | |
docker: | |
# Specify the version you desire here | |
- image: circleci/php:7.1-browsers | |
- image: circleci/mysql:5.7 | |
environment: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_USER: root |
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
// Bryan's version | |
let product = window.App.payload.product || {}; | |
function getDetails() { | |
const transformedPrice = product.price_range.max === product.price_range.min ? `$${product.price_range.min}` : `$${product.price_range.min} - $${product.price_range.max}`; | |
return { | |
title: product.title, | |
supply_id: product.id, |
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
namespace :app do | |
task :deploy, [:id] => :environment do |t, args| | |
system("bundle exec cap production deploy") | |
end | |
end |
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
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your location block(s): | |
# | |
# include cors_support; | |
# | |
# A limitation to this method is that Nginx doesn't currently send headers |