GithubHelp home page GithubHelp logo

sharelatex-vagrant-ansible's Introduction

About

VM configuration for ShareLaTeX development

Installs:

  • Required system packages
  • MongoDB (from packages)
  • Redis (from source)
  • NodeJS (+ npm, grunt) (from source)
  • TexLive
  • git clone ShareLaTeX master

Requirements

  • Vagrant >=1.7
  • VirtualBox >=4.0
  • Ansible >=1.8

Setup

  • vagrant up that's all!

Options

There are several configuration parameters available to edit in development.yml such as project root, node and redis versions, sharelatex repo url etc.

Provision

If you want to re-provision your VM you should run vagrant provision. It is possible to provide tags (or skip_tags) using TAGS (SKIP_TAGS) environment vars.

Run

Login into VM (vagrant ssh). Navigate to project root (default - '/webapps/sharelatex'). Run grunt run and open browser on http://localhost:3002/ (Note: port is not 3000 but 3002 by default!)

Possible issues

VirtualBox!Solve with plugin:vagrant plugin install vagrant-vbguest```

sharelatex-vagrant-ansible's People

Contributors

bamford avatar pacbard avatar palkan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bigkat pacbard

sharelatex-vagrant-ansible's Issues

Null Error Using shareLaTeX Editor

Hello!

I downloaded shareLaTeX onto my Vagrant VM using the ansible script. However, after about 5-10 minutes of using the LaTeX editor, it aborts with the following warning:

Warning: -> error null /webapps/sharelatex/clsi/app.js (6392454ms) Use --force to continue.

Aborted due to warnings.
Warning: Use --force to continue.

    Aborted due to warnings.

What does this error message mean and how would I go about fixing it?

Versioning

When trying to get a snapshot of a current project, an error is thrown:

ERROR: web-sharelatex/1333 on precise64: versioning API error
Error: connect ECONNREFUSED
at errnoException (net.js:904:11)
at Object.afterConnect as oncomplete

Is versioning working?

msg: github.com has an unknown hostkey.

Hi,

tried to use your script but I receive the following error message after running vagrant up:

msg: github.com has an unknown hostkey. Set accept_hostkey to True or manually add the hostkey prior to running the git module
FATAL: all hosts have already failed -- aborting

What shall I do?

sharelatex doesn't run as per the instructions

The readme says to run "grunt" in "/webapps/sharelatex".
But that doesn't work for me:

vagrant@precise64:~$ cd /webapps/sharelatex
vagrant@precise64:/webapps/sharelatex$ grunt run
grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
vagrant@precise64:/webapps/sharelatex$ ls
vagrant@precise64:/webapps/sharelatex$ 

So either the ansible playbook is not really describing the necessary state or the instructions are incomplete.

`playbook` must be set for the Ansible provisioner.

I pulled the latest version from git yesterday and now I see the following error message:

There are errors in the configuration of this machine. Please fix
the following errors and try again:
ansible provisioner:

  • playbook must be set for the Ansible provisioner.

Unable to start sharelatex

Dear All,
I setup a sharelatex VM via vagrant up in my Ubuntu server, everything is ok. I also assign 3Gb memory to the VM. But when I run grunt run, the info is shown as following:

vagrant@precise64:/webapps/sharelatex$ grunt run
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task
Running "concurrent:all" (concurrent) task

There is no any other info which make me feel confused. I also cannot access http://localhost:3002/. I am unable to solve the problem.

'origin' does not appear to be a git repository

for me vagrant provision ends with

ASK: [sharelatex | Git Checkout ShareLatex master] ***************************
failed: [192.168.51.111] => {"cmd": ["/usr/bin/git", "ls-remote", "origin", "-h", "refs/heads/master"], "failed": true, "item": "", "rc": 128}
stderr: fatal: 'origin' does not appear to be a git repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.