production database password change
This commit is contained in:
108
README.md
108
README.md
@@ -514,3 +514,111 @@ One shop to rule them all!
|
||||
<option value="75270">Zivinice</option>
|
||||
<option value="71370">Zupca</option>
|
||||
<option value="75400">Zvornik</option>
|
||||
|
||||
|
||||
deploy.sh
|
||||
|
||||
sudo pkill -f rails
|
||||
sudo pkill -f puma
|
||||
sudo git checkout -- front-api/db/schema.rb
|
||||
sudo git pull
|
||||
|
||||
|
||||
cd front-api
|
||||
bundle install
|
||||
rvmsudo rake db:migrate
|
||||
rvmsudo bundle exec puma -e production -b unix:///var/www/ribica/ribica_app.sock -d
|
||||
|
||||
cd ..
|
||||
cd back-office
|
||||
bundle install
|
||||
rvmsudo RAILS_ENV=production rails s -d
|
||||
|
||||
cd ..
|
||||
cd front-ui
|
||||
sudo npm install
|
||||
sudo grunt build
|
||||
|
||||
cd ..
|
||||
sudo service nginx restart
|
||||
|
||||
|
||||
|
||||
start_elastic_search.sh
|
||||
|
||||
sudo /opt/elasticsearch-1.4.4/bin/./elasticsearch -Xmx512m -Xms512m -d
|
||||
|
||||
|
||||
|
||||
ribica.conf
|
||||
|
||||
|
||||
upstream ribica_app {
|
||||
server unix:///var/www/ribica/ribica_app.sock;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name ribica.ba www.ribica.ba;
|
||||
|
||||
|
||||
location / {
|
||||
root /var/www/ribica/front-ui/build;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /backoffice {
|
||||
auth_basic "Restricted";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_pass http://ribica_app;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
|
||||
#listen 443;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate /etc/certifikati/SSL.crt;
|
||||
ssl_certificate_key /etc/certifikati/www.ribica.ba.key;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
# You may add here your
|
||||
# server {
|
||||
# ...
|
||||
# }
|
||||
# statements for each of your virtual hosts to this file
|
||||
|
||||
##
|
||||
# You should look at the following URL's in order to grasp a solid understanding
|
||||
# of Nginx configuration files in order to fully unleash the power of Nginx.
|
||||
# http://wiki.nginx.org/Pitfalls
|
||||
# http://wiki.nginx.org/QuickStart
|
||||
# http://wiki.nginx.org/Configuration
|
||||
#
|
||||
# Generally, you will want to move this file somewhere, and start with a clean
|
||||
# file but keep this around for reference. Or just disable in sites-enabled.
|
||||
#
|
||||
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
||||
##
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name ribica.ba www.ribica.ba;
|
||||
return 301 https://$server_name$request_uri;
|
||||
|
||||
# Make site accessible from http://localhost/
|
||||
}
|
||||
|
||||
@@ -81,6 +81,6 @@ test:
|
||||
production:
|
||||
<<: *default
|
||||
database: ribica
|
||||
username: postgres
|
||||
password: testni_hamo2
|
||||
username: ribicadatabase
|
||||
password: super*kicma*plazma*sunce
|
||||
host: localhost
|
||||
|
||||
Reference in New Issue
Block a user