benbalter / word-to-markdown-server Goto Github PK
View Code? Open in Web Editor NEWA hosted version of the Word to Markdown gem
Home Page: https://word2md.com
License: MIT License
A hosted version of the Word to Markdown gem
Home Page: https://word2md.com
License: MIT License
I've installed word-to-markdown and it's working fine. I'd like now to run the server so I can access through the browser like the Heroku version you have.
I can't find the script/server anywhere. How should I install it? Just copy the files and save on my server?
THanks,
Hey!
I was playing with the API using curl, but I encounter a problem. Any idea?
$ curl -X POST -F doc=@/tmp/test.docx http://word-to-markdown.herokuapp.com/raw
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</TITLE></HEAD>
<BODY>
<H1>Internal Server Error</H1>
closed stream
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25) at
word-to-markdown.herokuapp.com:80
</ADDRESS>
</BODY>
</HTML>
Hi i need install local instance in ubuntu 14
I am getting the following error:
[root@EPSS-CMS-RENDER script]# sh server
which: no growlnotify in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no terminal-notifier in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no growlnotify in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no terminal-notifier in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
12:41:16 [rerun] Script launched
12:41:16 [rerun] Rerun (11383) running Script (11396)
configuration /var/www/html/word-to-markdown-demo/script/config.ru not found
which: no growlnotify in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no terminal-notifier in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no growlnotify in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
which: no terminal-notifier in (/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-2.2.5@global/bin:/usr/local/rvm/rubies/ruby-2.2.5/bin:/usr/local/rvm/bin:/sbin:/bin:/usr/sbin:/usr/bin)
12:41:18 [rerun] Script Launch Failed
12:41:18 [rerun] Watching . for **/*.{rb,js,coffee,css,scss,sass,erb,html,haml,ru,yml,slim,md,feature,c,h} with Linux adapter
Any idea what may be causing this? Is there any documentation on how to get this running on a RHEL/CentOS server?
Webpage shows "Internal Server Error".
word-to-markdown-server's console shows "Encoding::CompatibilityError - incompatible character encodings: ASCII-8BIT and UTF-8"
你好.docx
)No error occurred.
Remove unicode characters in file name then upload.
Or, add .force_encoding('UTF-8')
in server.rb
render_template :display, md: md, html: html, filename: params['doc'][:filename].force_encoding('UTF-8').sub(/\.docx?$/, '')
We've been playing with W2M for a few days now. Everything's working great locally but we're having some trouble getting it set up on Heroku. We keep encountering the same error when trying to convert documents:
Errno::ENOENT - No such file or directory @ rb_sysopen - /tmp/{random-file-name}.html
After trying a few different things, we decided to try installing you're demo project on Heroku ourselves. I believe I've followed the installation instructions faithfully...
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
When I load the page, everything looks good. But I get a server error when attempting to convert a document:
Errno::ENOENT - No such file or directory @ rb_sysopen - /tmp/d20140630-2-7zv34/RackMultipart20140630-2-qwn9k7.html
Full backtrace: https://gist.github.com/coryschires/139e508d9c449534ec34.
Looks pretty similar. Any suggestions?
when i run ruby script/server
Console display script/server:4:in
rackup' for main:Object (NameError)
my ruby version 2.6.5 my rails version is 2.1.0A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.