Browse Source

Include fcrepo in distributable scripts.

Stefano Cossu 5 years ago
parent
commit
58416002a7
7 changed files with 8 additions and 10 deletions
  1. 1 1
      MANIFEST.in
  2. 0 0
      bin/fcrepo
  3. 1 1
      docker/docker_entrypoint
  4. 0 4
      docs/cli.rst
  5. 2 2
      lakesuperior/etc.defaults/gunicorn.yml
  6. 2 2
      lakesuperior/wsgi/__init__.py
  7. 2 0
      setup.py

+ 1 - 1
MANIFEST.in

@@ -1,6 +1,6 @@
 include README.rst
 include LICENSE
-include fcrepo
+include bin/*
 graft ext
 graft lakesuperior/data/bootstrap
 graft lakesuperior/endpoints/templates

+ 0 - 0
fcrepo → bin/fcrepo


+ 1 - 1
docker/docker_entrypoint

@@ -7,4 +7,4 @@ coilmq &
 if [ ! -d /data/ldpnr_store ] && [ ! -d /data/ldprs_store ]; then
   echo yes | lsup-admin bootstrap
 fi
-exec ./fcrepo
+exec fcrepo

+ 0 - 4
docs/cli.rst

@@ -39,10 +39,6 @@ available in Windows. Windows users should look for alternative WSGI servers
 to run the single-threaded service (``lsup-server``) over multiple processes
 and/or threads.
 
-**Note:** This is the only command line tool that is not added to the ``PATH``
-environment variable in Unix systems (beecause it is not cross-platform). It
-must be invoked by using its full path.
-
 ``lsup-admin``
 --------------
 

+ 2 - 2
lakesuperior/etc.defaults/gunicorn.yml

@@ -10,11 +10,11 @@ data_dir: .
 #listen_addr: '0.0.0.0'
 #listen_port: 8000
 #workers: 4
-#worker_class: 'gevent'
+#worker_class: 'sync'
 #max_requests: 0
 
 #user: ''
 #group: ''
 
-#preload_app: True
+#preload_app: False
 

+ 2 - 2
lakesuperior/wsgi/__init__.py

@@ -49,9 +49,9 @@ class __Defaults:
 
     listen_addr = '0.0.0.0'
     listen_port = 8000
-    preload_app = True
+    preload_app = False
     app_mode = 'prod'
-    worker_class = 'gevent'
+    worker_class = 'sync'
     max_requests = 0
 
     def __init__(self):

+ 2 - 0
setup.py

@@ -199,6 +199,8 @@ setup(
         ],
     },
 
+    scripts=['bin/fcrepo'],
+
     project_urls={
         'Source Code': 'https://github.com/scossu/lakesuperior/',
         'Documentation': 'https://lakesuperior.readthedocs.io',