Posts

Showing posts from October, 2018

Taking MOngodb Backup

https://github.com/xpressabhi/mup-data-backup Backup Take backup of running app data from docker then copy to local folder out of docker. docker exec -it mongodb mongodump --archive=/root/mongodump.gz --gzip docker cp mongodb:/root/mongodump.gz mongodump_$(date +%Y-%m-%d_%H-%M-%S).gz Copy backup to server Move data to another server/local machine or a backup location scp /path/to/dumpfile root@serverip:/path/to/backup

Installing SSL on Aws Instance / Digital Ocean Droplet with letsEncrypt free SSL -- Also contains modified mup file

Installing SSL on Aws Instance / Digital Ocean Droplet with letsEncrypt free SSL & also contains modified mup file ----------------------------------------------------------------------------------------------------------- there might come under one of these two cases when instaling SSL. 1. installing new SSL# on your server 2. renewing your certificates. here we are considering that we are doing it for first time. we assume you have installed mup already. # so SSl setup starts with stoping mup first mup stop # then install letsencrypt from this link git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt # next generate the required certificates ./letsencrypt-auto certonly --standalone # navigate into the directory where your cert chain is located cd /etc/letsencrypt/live/mysite.com # combine your cert chain with your private key touch ssl.pem cat fullchain.pem privkey.pem > ssl.pem # back to your machine # open your proj

Deploy Orthanc Viewer integrated project With mup

To deploy Orthanc Viewer integrated project With mup , follow these commands. In mup.js  env: {       PORT:80,       METEOR_PACKAGE_DIRS: "../Packages",       ROOT_URL: 'http://localhos',       MONGO_URL: 'mongodb://localhost/mongo',     }, the in app-deploy folder,     $ export METEOR_PACKAGE_DIRS=../../Packages     $ mup setup     $ mup deploy

command to excess Mongo db With docker

docker exec -it mongodb mongo PROJECT_NAME

Loader script

Loader with translucent background CSS **************************************************************************** /*loader class akhilesh start*/   .loader_class {     border: 16px solid #f3f3f3; /* Light grey */     border-top: 16px solid #3498db; /* Blue */     border-radius: 50%;     width: 120px;     height: 120px;     animation: spin 2s linear infinite;   margin-top: 10%; } @keyframes spin {     0% { transform: rotate(0deg); }     100% { transform: rotate(360deg); } } /* Absolute Center Spinner */ .loading {   position: fixed;   z-index: 999;   height: 2em;   width: 2em;   overflow: show;   margin: auto;   top: 0;   left: 0;   bottom: 0;   right: 0; } /* Transparent Overlay */ .loading:before {   content: '';   display: block;   position: fixed;   top: 0;   left: 0;   width: 100%;   height: 100%;     background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));   background: -webkit-radial-gradient(rgba(20, 20, 20,.