SX project
This commit is contained in:
@@ -1,83 +1,16 @@
|
|||||||
# ## SQLIte3 --- Setup
|
|
||||||
#
|
|
||||||
# # SQLite version 3.x
|
|
||||||
# # gem install sqlite3
|
|
||||||
# #
|
|
||||||
# # Ensure the SQLite 3 gem is defined in your Gemfile
|
|
||||||
# # gem 'sqlite3'
|
|
||||||
# #
|
|
||||||
# default: &default
|
|
||||||
# adapter: sqlite3
|
|
||||||
# pool: 5
|
|
||||||
# timeout: 5000
|
|
||||||
#
|
|
||||||
# development:
|
|
||||||
# <<: *default
|
|
||||||
# database: db/development.sqlite3
|
|
||||||
#
|
|
||||||
# # Warning: The database defined as "test" will be erased and
|
|
||||||
# # re-generated from your development database when you run "rake".
|
|
||||||
# # Do not set this db to the same as development or production.
|
|
||||||
# test:
|
|
||||||
# <<: *default
|
|
||||||
# database: db/test.sqlite3
|
|
||||||
#
|
|
||||||
# production:
|
|
||||||
# <<: *default
|
|
||||||
# database: db/production.sqlite3
|
|
||||||
|
|
||||||
# Mysql --- Setup
|
|
||||||
# MySQL. Versions 5.0 and up are supported.
|
|
||||||
#
|
|
||||||
# Install the MySQL driver
|
|
||||||
# gem install mysql2
|
|
||||||
#
|
|
||||||
# Ensure the MySQL gem is defined in your Gemfile
|
|
||||||
# gem 'mysql2'
|
|
||||||
#
|
|
||||||
# And be sure to use new-style password hashing:
|
|
||||||
# http://dev.mysql.com/doc/refman/5.7/en/old-client.html
|
|
||||||
#
|
|
||||||
default: &default
|
default: &default
|
||||||
adapter: mysql2
|
adapter: postgresql
|
||||||
encoding: utf8
|
host: localhost
|
||||||
pool: 5
|
pool: 5
|
||||||
username: root
|
timeout: 5000
|
||||||
password:
|
encoding: unicode
|
||||||
socket: /tmp/mysql.sock
|
username: wunna
|
||||||
|
password: admin123
|
||||||
|
port: 5432
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: SXRestaurants_development
|
database: SXDatabase
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
|
||||||
# re-generated from your development database when you run "rake".
|
|
||||||
# Do not set this db to the same as development or production.
|
|
||||||
test:
|
|
||||||
<<: *default
|
|
||||||
database: SXRestaurants_test
|
|
||||||
|
|
||||||
# As with config/secrets.yml, you never want to store sensitive information,
|
|
||||||
# like your database password, in your source code. If your source code is
|
|
||||||
# ever seen by anyone, they now have access to your database.
|
|
||||||
#
|
|
||||||
# Instead, provide the password as a unix environment variable when you boot
|
|
||||||
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
||||||
# for a full rundown on how to provide these environment variables in a
|
|
||||||
# production deployment.
|
|
||||||
#
|
|
||||||
# On Heroku and other platform providers, you may have a full connection URL
|
|
||||||
# available as an environment variable. For example:
|
|
||||||
#
|
|
||||||
# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
|
|
||||||
#
|
|
||||||
# You can use this database configuration with:
|
|
||||||
#
|
|
||||||
# production:
|
|
||||||
# url: <%= ENV['DATABASE_URL'] %>
|
|
||||||
#
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: SXRestaurants_production
|
database: paymal
|
||||||
username: SXRestaurants
|
|
||||||
password: <%= ENV['SXRESTAURANTS_DATABASE_PASSWORD'] %>
|
|
||||||
|
|||||||
11
config/facebook.yml
Normal file
11
config/facebook.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
development:
|
||||||
|
## with doemal account
|
||||||
|
app_id: 1049017345154593
|
||||||
|
secret: 36b2d6132deb803aa9d503d0034e7a68
|
||||||
|
|
||||||
|
## My account
|
||||||
|
#app_id: 434807636720506
|
||||||
|
#secret: b94c5e35cde5a2c13cfb2e1ba8be30c6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
application_path="#{File.expand_path("../..", __FILE__)}"
|
#application_path="#{File.expand_path("../..", __FILE__)}"
|
||||||
directory application_path
|
#directory application_path
|
||||||
# environment ENV.fetch("RAILS_ENV") { "production" }
|
# environment ENV.fetch("RAILS_ENV") { "production" }
|
||||||
environment "production"
|
#environment "production"
|
||||||
pidfile "#{application_path}/tmp/puma/pid"
|
#pidfile "#{application_path}/tmp/puma/pid"
|
||||||
state_path "#{application_path}/tmp/puma/state"
|
#state_path "#{application_path}/tmp/puma/state"
|
||||||
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
#stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
||||||
port ENV.fetch("PORT") { 62158 }
|
#port ENV.fetch("PORT") { 62158 }
|
||||||
workers 2
|
#workers 2
|
||||||
preload_app!
|
#preload_app!
|
||||||
|
|||||||
@@ -11,21 +11,12 @@
|
|||||||
# if you're sharing your code publicly.
|
# if you're sharing your code publicly.
|
||||||
|
|
||||||
development:
|
development:
|
||||||
secret_key_base: b61d85f8ed2a1a9e0eeece3443b3e8f838d002cc1d9f32115d8e93db920e2957adfedc57501d44741211538f3108b742cdeada87d5bfae796c53da1f90a3cd61
|
secret_key_base: a17cafd23cb0d29cf61d909be65790f19f25a117683b25a23419b8cdf87d9ec21135e031130f6192998e385017ec1c3250e493c0e42c2e6241b66e14048c6eb5
|
||||||
sx_provision_url: connect.smartsales.asia/api #connect.smartsales.dev/api #connect.smartsales.asia/api #provision.zsai.ws/api
|
|
||||||
server_mode: application
|
|
||||||
cipher_type: AES-256-CBC
|
|
||||||
sx_key: Wh@t1$C2L
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
secret_key_base: 5c92143fd4a844fdaf8b22aba0cda22ef1fc68f1b26dd3d40656866893718ae5e58625b4c3a5dc86b04c8be0a505ec0ebc0be3bf52249a3d1e0c1334ee591cf0
|
secret_key_base: 477062b07514b11d98ad096b82d81cd692af7a9f084e022dc65cfe02b26b01d11dcf950e624927894a3a1850fde5c82c0b27d8a24686b6c2d522154d0adaffec
|
||||||
|
|
||||||
# Do not keep production secrets in the repository,
|
# Do not keep production secrets in the repository,
|
||||||
# instead read values from the environment.
|
# instead read values from the environment.
|
||||||
production:
|
production:
|
||||||
secret_key_base: c4bc81065013f9a3506d385bcbd49586c42e586488144b0de90c7da36867de9fa880f46b5c4f86f0ce9b7c783bb5a73bdb0e5605a47716567294390e726d3e22
|
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
||||||
sx_provision_url: connect.smartsales.asia/api #192.168.1.147:3002/api
|
|
||||||
server_mode: application
|
|
||||||
cipher_type: AES-256-CBC
|
|
||||||
sx_key: Wh@t1$C2L
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user