Code Monkey home page Code Monkey logo

kemalcr.com's People

Contributors

alex-lairan avatar alexwayfer avatar aligoren avatar aravindavk avatar askn avatar cooq avatar crisward avatar fahrradflucht avatar greenbigfrog avatar henrikac avatar jens0512 avatar jeromegn avatar jmoriau avatar jodylecompte avatar jwoertink avatar mamantoha avatar mauricioabreu avatar mperham avatar muhammetdilmac avatar niwo avatar phoffer avatar quiet-storm avatar rickpeyton avatar rrevi avatar ruivieira avatar s0kil avatar samueleaton avatar sdogruyol avatar sija avatar szabgab avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kemalcr.com's Issues

Guide - Routes

There is a line in the guide which says

Routes are matched in the order they are defined. The first route that matches the request is invoked.

I'm not sure this is correct. Radix won't allow two identical routes, and those with overlap, the more specific tends to win... I think? Perhaps @luislavena can confirm.

Hello World failed

Following https://kemalcr.com/guide/ result:

Warning: Zlib is deprecated, use Compress::Zlib
Showing last frame. Use --error-trace for full trace.

In lib/kemal/src/kemal/helpers/helpers.cr:143:7

 143 | Gzip::Writer.open(env.response) do |deflate|
       ^
Error: undefined constant Gzip::Writer
Crystal 0.35.1 (2020-06-21)

LLVM: 10.0.0
Default target: x86_64-pc-linux-gnu

Error when trying to run the serve command

Steps to reproduce

I am getting the following error:

jekyll serve

Configuration file: /tmp/book/kemalcr.com/_config.yml
            Source: /tmp/book/kemalcr.com
       Destination: /tmp/book/kemalcr.com/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Liquid Exception: Could not locate the included file 'code/cors/app.cr' in any of ["/tmp/book/kemalcr.com/_cookbook/cors.md"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /tmp/book/kemalcr.com/_cookbook/cors.md/#excerpt
  Liquid Exception: Could not locate the included file 'code/cors/app.cr' in any of ["/tmp/book/kemalcr.com/_cookbook/cors.md"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /_layouts/default.html
jekyll 3.8.5 | Error:  Could not locate the included file 'code/cors/app.cr' in any of ["/tmp/book/kemalcr.com/_cookbook/cors.md"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.
/tmp/book/kemalcr.com 

More Info

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

$ uname -a
Linux oren 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ruby -v
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

How to configure ssl

The domain name and certificate are fine, the port is normal, but only responds to 127.0.0.1:443, the ssl domain name is not responding.
sh crystal run app.cr -- --ssl --ssl-key-file ./cert/2_xx.cn.key --ssl-cert-file ./cert/1_xx.cn_bundle.crt

Custom logger example in docs is not working

Example code at http://kemalcr.com/docs/middlewares/ shows that a custom logger should be registered using the following:

Kemal.config.logger = MyCustomLogger.new(Kemal.config.env)

However, the MyCustomerLogger class is a subclass of an abstract class with no initializer, and the example code for the subclass does not contain an initializer either. The end result is that the example as shown will not work. Possible fixes are to drop the env parameter or include an initializer method that accepts it and possibly stores it in an instance variable for later use.

i18n?

It would be better if it is available on another languages like Türkçe...

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.