https://github.com/digorithm/latex-linter
https://github.com/digorithm/latex-linter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/digorithm/latex-linter
- Owner: digorithm
- License: mit
- Created: 2017-07-02T22:30:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T21:12:55.000Z (over 8 years ago)
- Last Synced: 2025-10-08T21:59:28.282Z (9 months ago)
- Language: Python
- Size: 24.5 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Running the app
- Make sure you installed the python dependencies by running `pip install -r requirements.txt`
- Install the perl dependencies needed to run the latex linter perl script
- `perl -MCPAN -e 'install "Unicode::GCString module"'`
- `perl -MCPAN -e 'install "File::HomeDir"'`
- Run `rm -r migrations/; python manage.py create_db && python manage.py db init && python manage.py db migrate && python manage.py runserver`
# Deploying using Apache
- Move the `latex-linter` folder to `/var/www`
- Create a file `/etc/apache2/sites-available/latex-linter.conf` with the following content
```
ServerName
ServerAdmin admin@mywebsite.com
WSGIScriptAlias / /var/www/latex-linter/latex-linter.wsgi
Order allow,deny
Allow from all
Alias /static /var/www/latex-linter/latex-linter/project/client/static
Order allow,deny
Allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
```
- Restart the apache `service apache2 restart`
# Common problems
- The Perl dependencies can be a real pain to handle. If you're getting an error after installing a Perl module saying `Make not ok`, then try installing `apt-get install build-essential autoconf automake libtool gdb`, that will probably fix the build error.
- If some of your Perl dependencies is failing, try installing the module `cpan YAML::tiny`