项目环境:
3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Leiningen 2.3.2 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit Server VM
[[org.clojure/clojure "1.5.1"][ring/ring-core "1.2.0"][ring/ring-jetty-adapter "1.2.0"]] 1. 生成web项目:
lein new hello-world
cd hello-world
<参考 https://github.com/ring-clojure/ring/wiki/Getting-Started > 2. 启动web服务:
user=>(use 'ring.adapter.jetty)
user=>(use 'hello-world.core)
user=>(defonce server (run-jetty #'handler {:port 3000 :join? false}))
user=>(.stop server) #关闭web服务
user=>(.start server) #开启web服务 3. lein ring项目关闭调试信息,参考lein-ring插件README https://github.com/weavejester/lein-ring环境: org.clojure/clojure "1.5.1" / lein-ring "0.8.7"/ Leiningen 2.3.3 on Java 1.6.0_30 Java HotSpot(TM) 64-Bit Server VM
在project.clj修改
:ring {:handler beta_deploy.core/app}

为:

:ring {:handler beta_deploy.core/app :stacktraces? false}

随机推荐

  1. RadioButtonList 属性设置

    RadioButtonList 属性里有RepeatDirection 设为Horizontal

  2. unicode编码与utf-8 区别

    unicode编码与utf-8 区别 如果是为了跨平台兼容性,只需要知道,在 Windows 记事本的语境中: 所谓的「ANSI」指的是对应当前系统 locale 的遗留(legacy)编码.[1] ...

  3. selenium+python环境搭建

    1.安装python-2.7.3.msi 2.安装pywin32-216.win32-py2.7.exe 3.下selenium包,selenium-2.35.0.tar.gz,放到D:\autote ...

  4. Oracle存储过程动态创建临时表/存储过程执行权限问题--AUTHID CURRENT_USER

    关于Oracle存储过程执行权限问题的解决 http://blog.sina.com.cn/s/blog_6ceed3280101hvlo.html (2014-04-02 04:06:28) 转载▼ ...

  5. x-forward-for详解

    转载:http://www.360doc.com/content/14/0110/17/15459414_344165975.shtml 如今利用nginx做负载均衡的实例已经很多了,针对不同的应用场 ...

  6. linux下删除文件夹的命令

    使用rm -rf 目录名字 命令即可 -r 就是向下递归,不管有多少级目录,一并删除-f 就是直接强行删除,不作任何提示的意思 eg 删除文件夹实例:rm -rf /var/log/httpd/acc ...

  7. JS 笔记(二) - 函数

    1. 函数的 声明 1) 声明式写法 function j1(id){ alert(id); } 2) 声明匿名函数变量 var j2 = function (a, b) { alert(a + &q ...

  8. css3弹性盒子温习

    弹性盒子由弹性容器(Flex container)和弹性子元素(Flex item)组成. 弹性容器通过设置 display 属性的值为 flex 或 inline-flex将其定义为弹性容器. 弹性 ...

  9. APK签名是如何生成的

    零.前言本文以支付宝手机客户端为例,进行剖析到支付宝官网下载当前最新版本:8.0.1 (2014-01-28)文件名为 alipay_wap_main.apkMD5 摘要为 69820edb3cd13 ...

  10. freeswitch:error C2220: 警告被视为错误 - 没有生成“object”文件

    项目 -> 属性-> 配置属性 -> c/c++ -> 将警告视为错误 -> 否 参考: http://www.cnblogs.com/kex1n/archive/201 ...