Skip to content

Server Pro: Setting up templates

Henry Oswald edited this page May 24, 2016 · 15 revisions

A single ShareLaTeX user is responsible to publishing templates which are visable of /templates. To set this use the env var SHARELATEX_TEMPLATES_USER_ID

--env SHARELATEX_TEMPLATES_USER_ID=56a8865231faeb5f07d69959

To obtain the user id of the user you wish to publish public templates with you can either go via the admin panel or via Mongo.

Admin panel

User if shown in admin panel

Via mongo

> mongo
> use sharelatex
switched to db sharelatex
> db.users.find({email:"sally@sharelatex.com"}, {_id:1})
{ "_id" : ObjectId("55d5d16ad0904571699304d4") }
>
Clone this wiki locally