This file contains hidden or 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
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
echo "0.- Reestablecer el contexto" | |
sudo restorecon -Rv /var/www/html | |
echo "1.- Cambiar propietario del webroot de Apache" |
This file contains hidden or 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
1) docker-compose exec db bash | |
Access db container by this command | |
2) mongo | |
Type the above and enter | |
4) use database | |
3) db.coverage.find({}).count() | |
IN mongo DB command line get total records | |
This file contains hidden or 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
server { | |
listen 80; | |
server_name demo.example.com; | |
return 301 https://demo.example.com$request_uri; | |
} | |
server { | |
listen 443 ssl spdy; | |
server_name demo.example.com; | |
ssl on; |
This file contains hidden or 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
# PhpMyAdmin configuration for nginx | |
location /phpmyadmin { | |
root /usr/share/; | |
index index.php index.html index.htm; | |
location ~ ^/phpmyadmin/(.+\.php)$ { | |
#try_files $uri =404; | |
root /usr/share/; | |
#fastcgi_pass 127.0.0.1:9000; | |
fastcgi_pass unix:/tmp/php5-fpm.sock; |
This file contains hidden or 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
$ touch /usr/share/applications/robomongo.desktop | |
$ vim /usr/share/applications/robomongo.desktop | |
Content | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Type=Application | |
Name=Robomongo | |
Icon=/opt/robomongo-{robomongo-version}/bin/robomongo.png |