<div dir="ltr">Abhi,<div><br></div><div>If you're comfortable using salt, there are salt states for deploying nbviewer (<a href="https://github.com/rgbkrk/salt-nbviewer">https://github.com/rgbkrk/salt-nbviewer</a>). Currently this installs straight from the master branch of nbviewer. In the near future, this will have branch/environment setup to deploy to qa, staging and production servers.</div>
<div><br></div><div>If you're not comfortable with salt, it serves as a good reference for which packages to install, how to set up the virtualenv, working configurations for both supervisor and memcache. top.sls shows the order (<a href="https://github.com/rgbkrk/salt-nbviewer/blob/master/top.sls">https://github.com/rgbkrk/salt-nbviewer/blob/master/top.sls</a>), follow that up with the init.sls files in each of the directories. If you'd like more detail than this, I could probably be convinced to write something up.</div>
<div><br></div><div>-- Kyle</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 11:58 AM, Abhishek Pratap <span dir="ltr"><<a href="mailto:apratap@sagebase.org" target="_blank">apratap@sagebase.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for letting me know. It was a bit tricky to get the memcache to work but it finally does. I can run the copy of nbviewer locally however I am not sure the steps to deploy it locally at production level.<div>
<br></div><div>Here is what I tried so far.</div><div><br></div><div><br></div><div><br></div><div>1.$python app.py : returns to shell with the following message, webserver is not started</div><div>using clasical memcached</div>
<div><br></div><div><br></div><div>2. python githubapp.py : ends with the following error. Flask-Cache is installed</div><div>Traceback (most recent call last):</div><div> File "githubapp.py", line 5, in <module></div>
<div> from flaskext.cache import Cache</div><div>ImportError: No module named cache</div><div><br></div><div>3. python gist.py :starts the server but the examples on the main page dont seem to work. I get either a 400/500 error.</div>
<div>using clasical memcached</div><div>debug is not activated</div><div> * Running on <a href="http://0.0.0.0:5000/" target="_blank">http://0.0.0.0:5000/</a></div><div><br></div><div><br></div><div>Thanks!</div><div>-Abhi</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 15, 2013 at 12:44 PM, Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
Le 15 oct. 2013 à 21:09, Abhishek Pratap a écrit :<br>
<div><br>
> Hey Guys<br>
><br>
> Just wondering if it is possible to install nbviewer locally outside the heroku infrastructure. We would like to have it running on a EC2 instance. Any pointers to the same would be of great help.<br>
<br>
</div>As long has you have memcached installed and the required library, it shouldn't be harder than running on a shell<br>
<br>
<br>
$ python gist.py<br>
<br>
(that how I test my changes by running on localhost)<br>
<br>
The rest like port number can be set with environment variable.<br>
We are working on making this easier, any feedback welcomed.<br>
<span><font color="#888888">--<br>
M<br>
<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>