4 ms·
Show HN: Run/Schedule stand-alone scripts on a REST endpoint
- dkeixm 10y agoA tiny serverless computing platform for ruby developers. You can Run/Schedule single-purpose ruby scripts on a REST endpoint. I used Redis, Sinatra, Sidekiq to develop the stack, Its running on unicorn & Nginx. Ruby version is 2.3.1p112. Let me know your views on it.
- dozzie 10y agoI'm reading the description and reading it, and I still can't make heads or tails of what does it do and when would I want to use it. Publishing text files that happen to be code? Running a parametrized script on a request, RPC-like? Running a script that was supplied in request, so people don't need to find code injection attacks, but simply submit their code? Something different?
- dkeixm 10y agoWhat it do? --> Just upload your code to serverlessly.io. You receive a REST endpoint. You can trigger your code via HTTP verbs. GET for immediate response, POST for scheduling the code. When You should use? --> If you developing one of these; Mobile apps, IOT, REST endpoints for Webapps; You will consider solutions like serverlessly, AWS lambda, Google CF over building own cloud infrastructure with ec2 or Google CE. Also, there are projects that consider separating out Compute/Memory intense tasks, Single-purpose stand-alone tasks from the stack to REST endpoint. What are use-cases for individual rubyist ? ---> Building web crawlers, Program to send bulk emails or schedule emails, Processing text, Converters(csv, pdf..etc), A cool REST endpoint that other can use. To answer your question, first one is right i.e. Publishing text files that happen to be code
- Sarkie 10y agoit ded
- cs0 10y agoI'm a little concerned that I'd be signing up using cURL over HTTP and not HTTPS. Any plans to go fully HTTPS?
- guessmyname 10y agoYou might want to disable debug mode (aka. show_exceptions setting) unless you want people to have access to sensitive information like the one contained in the "firebase.rb" file or "/root/nginx-unicorn-sinatra/app.rb". Sending an invalid User-Agent as part of the HTTP requests (like one with Unicode characters) makes the web application fail and respond with a dump of the global _SERVER variable with additional information provided by the Sinatra framework: curl -H "User-Agent: Foo — Bar" "http://serverlessly.io/"
- dkeixm 10y agoYeah man!! added these lines in config file set :show_exceptions, false set :raise_errors, false set :dump_errors, false. Also, working on to enable HTTPS