Hello

I am a newcomer on Mayan EDMS.
After installing a demonstration following the attached procedure (
*edms_install_proc.txt)* , I was seduced by the product.
The only point that is blocking for our customers is that, at the time of 
adding a document, the generation of the pages thumbnails take a crazy time.
How can we reduce this time? Is there a setting for this pregeneration to 
be done only for the new document and not the whole?
Another option would be that this pregeneration takes place in asynchronous 
mode.

Thank you for your reply. Beyond this aspect, the product is really 
attractive.


cordially

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
#he system is Ubuntu 16.04 server
 
sudo apt-get update


# Using a Debian or Ubuntu based Linux distribution, get the executable 
requirements using:
sudo apt-get install graphviz nginx supervisor redis-server postgresql \
libpq-dev libjpeg-dev libmagic1 libpng-dev libreoffice \
libtiff-dev gcc ghostscript gnupg python-dev python-virtualenv \
tesseract-ocr poppler-utils -y

# Switch to superuser:
sudo -i

# Change to the directory where the project will be deployed:
cd /usr/share

# Create the Python virtual environment for the installation:
virtualenv mayan-edms

# Activate the virtualenv:
source mayan-edms/bin/activate


# Install Mayan EDMS from PyPI:
pip install mayan-edms

# Install the Python client for PostgreSQL, Redis, and uWSGI:
pip install psycopg2 redis uwsgi

# Create the database for the installation:
sudo -u postgres createuser -P mayan (provide password)  
sudo -u postgres createdb -O mayan mayan


# Create the directory for the log files:
mkdir /var/log/mayan

# Change the current directory to be the one of the installation:
cd mayan-edms

# Make a convenience symbolic link:
ln -s lib/python2.7/site-packages/mayan .

# Create an initial settings file:
mayan-edms.py createsettings

# Append the following to the mayan/settings/local.py file, paying attention to 
replace the PASSWORD value:
"
DATABASES = {
        'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'mayan',
        'USER': 'mayan',
        'PASSWORD': '*****',
        'HOST': 'localhost',
        'PORT': '5432',
        }
}
BROKER_URL = 'redis://127.0.0.1:6379/0'
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'
"



#  Migrate the database or initialize the project:
mayan-edms.py initialsetup

#  Disable the default NGINX site:
rm /etc/nginx/sites-enabled/default

# Create a uwsgi.ini file with the following contents:
# vi uwsgi.ini
"
[uwsgi]
chdir = /usr/share/mayan-edms/lib/python2.7/site-packages/mayan
chmod-socket = 664
chown-socket = www-data:www-data
env = DJANGO_SETTINGS_MODULE=mayan.settings.production
gid = www-data
logto = /var/log/uwsgi/%n.log
pythonpath = /usr/share/mayan-edms/lib/python2.7/site-packages
master = True
max-requests = 5000
socket = /usr/share/mayan-edms/uwsgi.sock
uid = www-data
vacuum = True
wsgi-file = /usr/share/mayan-edms/lib/python2.7/site-packages/mayan/wsgi.py
processes = 4
threads = 2
"


# Create the directory for the uWSGI log files:
mkdir /var/log/uwsgi

#  Create the NGINX site file for Mayan EDMS, /etc/nginx/sites-available/mayan:
"
server {
        listen 80;
        server_name localhost;
        location / {
                        include uwsgi_params;
                        uwsgi_pass unix:/usr/share/mayan-edms/uwsgi.sock;
                        client_max_body_size 30M; # Increse if your plan to 
upload bigger documents
                        proxy_read_timeout 30s; # Increase if your document 
uploads take more than 30 seconds
                }
        location /static {
                        alias /usr/share/mayan-edms/mayan/media/static;
                        expires 1h;
        }
        location /favicon.ico {
                alias 
/usr/share/mayan-edms/mayan/media/static/appearance/images/favicon.ico;
                expires 1h;
        }
}

"

# Enable the NGINX site for Mayan EDMS:
ln -s /etc/nginx/sites-available/mayan /etc/nginx/sites-enabled/

# Create the supervisor file for the uWSGI process, 
/etc/supervisor/conf.d/mayan-uwsgi.conf:
"
[program:mayan-uwsgi]
command = /usr/share/mayan-edms/bin/uwsgi --ini /usr/share/mayan-edms/uwsgi.ini
user = root
autorestart = true
autorestart = true
redirect_stderr = true
"



# Create the supervisor file for the Celery worker, 
/etc/supervisor/conf.d/mayan-celery.conf:
"
[program:mayan-worker]
command = /usr/share/mayan-edms/bin/python 
/usr/share/mayan-edms/bin/mayan-edms.py celery 
--settings=mayan.settings.production worker -Ofair -l ERROR
directory = /usr/share/mayan-edms
user = www-data
stdout_logfile = /var/log/mayan/worker-stdout.log
stderr_logfile = /var/log/mayan/worker-stderr.log
autostart = true
autorestart = true
startsecs = 10
stopwaitsecs = 10
killasgroup = true
priority = 998
[program:mayan-beat]
command = /usr/share/mayan-edms/bin/python 
/usr/share/mayan-edms/bin/mayan-edms.py celery 
--settings=mayan.settings.production beat -l ERROR
directory = /usr/share/mayan-edms
user = www-data
numprocs = 1
stdout_logfile = /var/log/mayan/beat-stdout.log
stderr_logfile = /var/log/mayan/beat-stderr.log
autostart = true
autorestart = true
startsecs = 10
stopwaitsecs = 1
killasgroup = true
priority = 998
"


# Collect the static files:
mayan-edms.py collectstatic --noinput

# Make the installation directory readable and writable by the webserver user:
chown www-data:www-data /usr/share/mayan-edms -R

# Enable and restart the services [1]:
systemctl enable supervisor
systemctl restart supervisor
systemctl restart nginx

Reply via email to