GithubHelp home page GithubHelp logo

dmathieu / cylon Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 0.0 133 KB

Rack middleware and Rails Engine to avoid indexing your application in non-production environments

Home Page: http://dmathieu.com

License: MIT License

Ruby 100.00%

cylon's Introduction

Well, Hello There!

I am a software engineer with a focus on backend, resilience and observability, currently working at @elastic.

Linkedin GitHub Goodreads

Some of the technologies I work with are Go, Ruby, Kubernetes, OpenTelemetry. I am also a contributor to Open-Source.

I am writing about software engineering, and food fermentation (fr).

Languages and Tools




cylon's People

Contributors

dmathieu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

cylon's Issues

Cylon License

Would you be so kind as to as to add a license to this gem? For example:

Gem::Specification.new do |s|
  s.name = "cylon"
  s.license = "MIT"
end

Default placement in Rails middleware stack

Hi, this gem is well made and it's exactly what I was looking for. Thanks for it!

I tried adding it to my rails 4 app but when I tried requesting my robots.txt in development, I got back the actual file:

$ curl mysite.dev/robots.txt            
User-agent: *
Disallow: /some-path/

I checked rake middleware and Cylon::Rack is listed at the bottom of the stack. I tried manually moving it before ActionDispatch::Static which should be serving the static files out of the /public directory and that seemed to fix it on my staging server (Heroku). Perhaps the Rails engine should attempt to do this automatically?

Strangely, this did not fix it for me locally in development while using the Pow server. When running the server with rails s it did work though. Any ideas?

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.