You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
10. Go into lingvodoc dir and make `python setup.py install` or `python setup.py develop` (you should know what you are doing)
103
+
11. Copy alembic_base.ini and postgres.ini configs to home directory: `cp ./alembic_base.ini ../ ; cp postgres.ini ../`
104
+
12. Tuneup settings in alembic_base.ini:
105
+
* sqlalchemy.url
106
+
13. Tuneup settings in postgres.ini:
107
+
* section [server:main] according to your choice. Recommended way to deploy in production mode is to use gunicorn (or uwsgi but it may have some problems)
108
+
```
109
+
[server:main]
110
+
use = egg:gunicorn#main
111
+
workers = 8
112
+
timeout = 3000
113
+
proc_name = lingvodoc
114
+
bind = unix:/tmp/lingvodoc.sock
115
+
```
116
+
(note: you should install gunicorn to use that config; it's not present in requirements since pserve/waitress works well too)
117
+
(note2: if you are using that way, you will need wsgi-frontend [nginx for example])
118
+
* section [app:main]
119
+
- `secret = 'your random string'`
120
+
- `sqlalchemy.url` according to database name, postgres port etc.
121
+
* loggers (to your choice)
122
+
* section [app:accounts] for your administrator user (needed for building from scratch)
123
+
* section [backend:storage]. WARNING: do not forget to change `prefix`
124
+
- in case of plain disk usage:
125
+
```
126
+
[backend:storage]
127
+
type = disk
128
+
path = /home/lingvodoc/objects/
129
+
prefix = http://lingvodoc.ispras.ru/
130
+
static_route = objects/
131
+
```
132
+
- in case of Openstack Swift usage (just for example; you must know what you are doing if you use it):
133
+
```
134
+
[backend:storage]
135
+
authurl = http://10.10.10.121:5000/v2.0
136
+
store = http://adelaide.intra.ispras.ru/horizon/project/containers
137
+
user = admin
138
+
key = tester
139
+
auth_version = 2.0
140
+
tenant_name = admin
141
+
```
142
+
14. Run lingvodoc: `pserve --daemon ./postgres.ini start`
143
+
144
+
145
+
Installing as desktop (user) environment for Ubuntu
0 commit comments