An open API service indexing awesome lists of open source software.

https://github.com/digorithm/latex-linter


https://github.com/digorithm/latex-linter

Last synced: 3 months ago
JSON representation

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`