kemalcr / kemalcr.com Goto Github PK
View Code? Open in Web Editor NEWKemal Website source code
Home Page: http://kemalcr.com/
Kemal Website source code
Home Page: http://kemalcr.com/
Use https://github.com/topics/kemal?o=desc&s=updated to show open source Kemal apps
Related to kemalcr/kemal#360
Add deployment instructions with capistrano-kemal.
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.
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
Middleware docs are missing only
, exclude
and ordering.
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
$ 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]
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
Seems it's still showing the "old" style FWIW... :)
File Upload guide (http://kemalcr.com/docs/file_upload/) doesn't work with Kemal 0.18.1
undefined method 'filename' for Tempfile
file_path = ::File.join [Kemal.config.public_folder, "uploads/", file.filename]
Add extras / contrib section for shards like https://github.com/crystal-garage //cc @mamantoha
I'm not sure if this is really kemalcr.com's or crystal-lang.org's fault, but the link at the top of https://kemalcr.com/guide/ to https://crystal-lang.org/reference/installation/ is 404'd.
Follow up on kemalcr/kemal#457
Since Kemal::Config#serve_static is proprty it produces an error:
wrong number of arguments for 'Kemal::Config#serve_static' (given 1, expected 0)
"=" should be added.
pr
Add crystal-db
instructions
As discussed in this issue:
kemalcr/kemal#295 (comment)
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.
It would be better if it is available on another languages like Türkçe...
The guide does not cover this. It just tells how to switch between modes and mentions two modes. How to they differ? Are there more?
Can we change this example: https://github.com/kemalcr/kemalcr.com/blob/master/_cookbook/code/cors/app.cr#L5 to "MYDOMAIN" etc.. to avoid copy-paste of "*"
as an insecure value?
A 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.