Passage de presta_app à arcom_app

This commit is contained in:
Nicolas Bally 2021-10-26 09:40:44 +02:00
parent dba61c6baf
commit 4d4ee3aa59
14 changed files with 29 additions and 29 deletions

View File

@ -908,7 +908,7 @@
%th
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(cc_tot_amount_ht) AS cc_tot_amount_ht, SUM(cc_weight_tot) AS cc_weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("cc_tot_amount_ht DESC").each do |ppp|
@ -1014,7 +1014,7 @@
%th
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(tot_amount_ht) AS tot_amount_ht, SUM(weight_tot) AS weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("tot_amount_ht DESC").each do |ppp|
@ -1096,7 +1096,7 @@
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(cc_tot_amount_ht) AS cc_tot_amount_ht, SUM(cc_weight_tot) AS cc_weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("cc_tot_amount_ht DESC").each do |ppp|
@ -1165,7 +1165,7 @@
%th
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(cc_tot_amount_ht) AS cc_tot_amount_ht, SUM(cc_weight_tot) AS cc_weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("cc_tot_amount_ht DESC").each do |ppp|
@ -1263,7 +1263,7 @@
%th.numeraire CA Moyen famille / client
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(cc_tot_amount_ht) AS cc_tot_amount_ht, SUM(cc_weight_tot) AS cc_weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("cc_tot_amount_ht DESC").each do |ppp|
@ -1359,7 +1359,7 @@
%th.numeraire CA Moyen famille / client
%tbody
/* 11:18:50 localhost presta_app */ SELECT COUNT(1) FROM `order_hist_lines`;
/* 11:18:50 localhost arcom_app */ SELECT COUNT(1) FROM `order_hist_lines`;
-#@periode_price_lines.select("p_product_ref_id, SUM(cc_tot_amount_ht) AS cc_tot_amount_ht, SUM(cc_weight_tot) AS cc_weight_tot, ((SELECT weight FROM `p_product_refs` WHERE id = price_lines.p_product_ref_id )) AS price_per_kg").group(:p_product_ref_id).order("cc_tot_amount_ht DESC").each do |ppp|

View File

@ -7,4 +7,4 @@ test:
production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: presta_app_production
channel_prefix: arcom_app_production

View File

@ -7,7 +7,7 @@
default: &default
adapter: mysql2
encoding: utf8mb4
database: presta_app
database: arcom_app
pool: 5
timeout: 5000
variables:
@ -27,7 +27,7 @@ test:
production:
<<: *default
database: presta_app
username: presta_app
password: presta_app
database: arcom_app
username: arcom_app
password: arcom_app
socket: /var/run/mysqld/mysqld.sock

View File

@ -4,7 +4,7 @@
lock "~> 3.11.0"
set :application, 'presta_app'
set :application, 'arcom_app'
set :domain, 'quartz-www02.sysnove.net'

View File

@ -1,18 +1,18 @@
upstream presta_app_unicorn {
server unix:/srv/www/web/presta_app/shared/unicorn.sock fail_timeout=0;
upstream arcom_app_unicorn {
server unix:/srv/www/web/arcom_app/shared/unicorn.sock fail_timeout=0;
}
server {
listen [::]:80;
server_name presta_app.quartz.xyz ;
root /srv/www/web/presta_app/current/public;
server_name arcom_app.quartz.xyz ;
root /srv/www/web/arcom_app/current/public;
try_files $uri/index.html $uri @unicorn;
location @unicorn {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://presta_app_unicorn;
proxy_pass http://arcom_app_unicorn;
proxy_read_timeout 6000;
}

View File

@ -121,7 +121,7 @@ namespace :deploy do
sudo "service nginx reload"
execute "cd #{current_path}"
execute "cd /srv/www/web/presta_app/current; npm install"
execute "cd /srv/www/web/arcom_app/current; npm install"
end

View File

@ -1,7 +1,7 @@
APP_RUBY=2.6.0
ENV=production
APP_ROOT=/srv/www/web/presta_app/current/
APP_ROOT=/srv/www/web/arcom_app/current/
GEM_HOME=/srv/www/web/.rvm/gems/ruby-$APP_RUBY
UNICORN_OPTS="-D -E ${ENV} -c ${APP_ROOT}/config/unicorn.rb"

View File

@ -61,7 +61,7 @@ Rails.application.configure do
# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "presta_app_production"
# config.active_job.queue_name_prefix = "arcom_app_production"
config.action_mailer.perform_caching = false

View File

@ -1,6 +1,6 @@
upstream presta_app_unicorn {
server unix:/srv/www/web/presta_app/shared/unicorn.sock fail_timeout=0;
upstream arcom_app_unicorn {
server unix:/srv/www/web/arcom_app/shared/unicorn.sock fail_timeout=0;
}
@ -11,14 +11,14 @@ upstream presta_app_unicorn {
server {
listen [::]:443 ssl;
server_name arcom.basiclabs.fr;
root /srv/www/web/presta_app/current/public;
root /srv/www/web/arcom_app/current/public;
try_files $uri/index.html $uri @unicorn;
location @unicorn {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_redirect off;
proxy_pass http://presta_app_unicorn;
proxy_pass http://arcom_app_unicorn;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@ -1,5 +1,5 @@
defaults: &defaults
site_name: presta_app
site_name: arcom_app
dynamics_content:
contact: "Formulaire contact"
large_sub_menu: "Sous menu"

View File

@ -1,4 +1,4 @@
@rails_app = "presta_app"
@rails_app = "arcom_app"
working_directory "/srv/www/web/#{@rails_app}/current"
pid "/srv/www/web/#{@rails_app}/shared/unicorn.pid"

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "presta_app",
"name": "arcom_app",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "presta_app",
"name": "arcom_app",
"version": "1.0.0",
"description": "== README",
"main": "pdf.js",

View File

@ -1,5 +1,5 @@
{
"name": "presta_app",
"name": "arcom_app",
"private": true,
"dependencies": {
"@rails/actioncable": "^6.0.0-alpha",