thin Questions

4

Solved

I have a rails app running a thin server on heroku. It currently uses http. I would like to use https for bot development and production. Where do I begin to do this. I have looked at this railsca...
Idiomatic asked 21/7, 2012 at 5:5

3

Solved

i tried to install the thin web server, version 1.7.2 but got an error with the logs: thin.c:359:10: error: implicit declaration of function 'thin_http_parser_has_error' is invalid in C99 [-Werror,...
Site asked 11/9, 2020 at 17:3

6

I'm running a Rails app locally (Thin server), and I can connect locally from the browser (localhost:3000), but when I try to use curl, I get: curl -H 'id:1' -i 'http://localhost:3000/api/data' -v...
Dimension asked 7/1, 2014 at 22:29

2

Solved

Describe the bug I have tried to do a gem install puma and gem install thin and get an error. I have a brand new Mac that I am setting up: MacOS Catalina 10.15.6 (19G73) I have worked out that any ...
Lili asked 6/8, 2020 at 7:22

6

public static Connection getConnection()throws SQLException,ClassNotFoundException { String username="scott"; String password="tiger"; String url="jdbc:oracle:thin:@localhost:1521"; Connection...
Kamerad asked 2/12, 2012 at 9:0

2

Solved

I need to run thin start or thin -ssl ... start within the root of my rails app, and see the application logs output to the console, similar to what rails s does
Diathermy asked 3/3, 2014 at 22:16

3

Solved

Context: To run localhost as SSL, I followed the instructions at this site After setting up the SSL cert, to run the local rails server, the site says to: thin start --ssl <some more options&g...
Arapaho asked 17/10, 2013 at 21:35

4

I want to return raw data/blob from my grape/rest api. I followed the thread at : https://github.com/intridea/grape/issues/412 for a code like : get 'foo' do content_type 'text/plain' "hello w...
Contagious asked 7/5, 2015 at 1:52

8

Solved

I was trying to use Thin app server and had one issue. When nginx proxies the request to Thin (or Unicorn) using proxy_pass http://my_app_upstream; the application receives the modified URL sent b...
Clausen asked 29/4, 2011 at 15:28

0

I am running a small sinatra application which re-uses a company-wide client certificate every employee has already installed (signed by an internal SSO_CA). My Sinatra/Thin combination is using th...
Tungstic asked 22/6, 2018 at 14:34

3

While loading a Thin webserver for a sinatra app I keep getting Unable to load the EventMachine C extension; To use the pure-ruby reactor, require em/pure_ruby'<path>/vendor/bundle/ruby/1.9....
Giesecke asked 30/1, 2013 at 17:30

3

Solved

I'm trying to use redirects and sessions in Sinatra to pass some data around the site. Here's a simplified example, using PrettyPrint for debugging: require 'pp' require 'rubygems' require 'sinat...
Negotiation asked 19/7, 2011 at 14:40

1

Solved

I am writing a Sinatra web server that I would like to be RESTful, but the thing is that it has to interact with another server that communicates exclusively via web sockets. So, this needs to happ...
Eugenioeugenius asked 31/8, 2017 at 18:18

2

Solved

I have a Ruby on Rails 3.2 app with the websocket-rails gem, running in a thin webserver behind a nginx reverse proxy. Except for the nginx reverse proxy, everything works just fine. By removing t...
Catherincatherina asked 13/4, 2013 at 19:45

4

Solved

I can use THIN with bundle exec thin start --ssl --ssl-verify --ssl-key-file /private/etc/apache2/ssl/server.key --ssl-cert-file /private/etc/apache2/ssl/server.crt It works in the console/termi...
Disk asked 20/6, 2013 at 14:18

2

Solved

my cucumber features with selenium runs (for Rails 3 app) using the default Webrick server. How can I force or setup to run with Thin server instead of Webrick? Any settings to put in env.rb file ...
Alcatraz asked 3/1, 2011 at 15:5

5

Solved

My question is similar to this one Rails 3.2 Asset Pipeline with Passenger Endless Errors except that when I try to actually go to <link href="/assets/application-eed7996ee9017637f923133371ab3...
Athamas asked 24/2, 2012 at 20:19

2

Solved

I'm new to ruby, learning Sinatra. While creating a Sinatra site by requiring 'sinatra' and setting up the routes directly under is pretty easy and rather well documented, creating an application b...
Wrangle asked 8/12, 2010 at 15:29

5

Solved

It seems like it's taken for granted that you must not use Webrick as production server, but I can't really find anywhere mentioning why. The consensus seems to be: "Webrick is ok for development, ...
Prescriptive asked 2/6, 2012 at 3:55

3

Solved

While trying to run my config.ru, I'm getting an odd error I can't seem to debug called a 'No acceptor' error. Full error message: eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeE...
Slipnoose asked 29/4, 2012 at 13:2

1

Solved

Question Can you use thin with ActionController::Live to implement Server Side Events (SSE) and long polling? If so, how? Context Although the title is a repeat of How to get Rails 4 ActionContr...
Beaver asked 14/12, 2014 at 0:8

1

I'm integrating Bunny gem for RabbitMQ with Rails, should I start Bunny thread in an initializer that Rails starts with application start or do it in a separate rake task so I can start it in a sep...
Chlori asked 3/5, 2014 at 21:37

3

I'm looking for a simple way to enable SSL in a standalone Sinatra application running via Thin without having to pass the --ssl, --ssl-key-file and --ssl-cert-file parameters in via the Thin comma...
Peterkin asked 10/7, 2012 at 0:38

1

I have a Rails 4.1 application with a simple controller which streams a response: class ServerSentEventsController < ApplicationController include ActionController::Live def index response....
Ephraimite asked 29/8, 2014 at 4:21

2

How do I run a Sinatra app as a deamon from the command line? It is using Thin: ruby app.rb -p 3000 -e production I don't like to set it up in the app.rb itself. I want to deamonise it from the...
Mendy asked 18/12, 2014 at 8:58

© 2022 - 2024 — McMap. All rights reserved.