configuring the production build

This commit is contained in:
Edin Dazdarevic
2015-06-21 15:01:49 +02:00
parent 52a03f3334
commit 18d54ffea3
5 changed files with 17 additions and 35142 deletions

View File

@@ -108,6 +108,3 @@ DEPENDENCIES
sinatra-activerecord
sinatra-contrib
xxhash (~> 0.3.0)
BUNDLED WITH
1.10.3

View File

@@ -16,7 +16,7 @@ before do
content_type :json
# TODO: before running to production change this so that only specific
# domain is allowed
headers 'Access-Control-Allow-Origin' => 'http://192.168.1.37:3001',
headers 'Access-Control-Allow-Origin' => 'http://localhost:3001',
'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST','PUT'],
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept',
'Access-Control-Expose-Headers' => 'X-Total-Count',

View File

@@ -130,8 +130,8 @@ ActiveRecord::Schema.define(version: 20150614050336) do
t.datetime "updated_at", null: false
t.string "tags"
t.json "traits"
t.integer "supplier_id"
t.decimal "weight", precision: 5, scale: 3
t.integer "supplier_id"
t.integer "delivery_time_estimation_id"
t.integer "brand_id"
end