Re: How to debug this trace involving Korma

2013-12-29 Thread Zeynel
: > > Reading that tutorial, it looks like it expects you to call > (create-tables) manually via the REPL. > > On Sun, Dec 29, 2013 at 3:47 AM, Zeynel > > wrote: > > The first lines of the trace says: > > > > Failure to execute query with SQL: > &g

Re: What non-deprecated Clojure Web libraries to use?

2013-12-29 Thread Zeynel
I know this an old thread but here the author says that he deprecated Enclojure https://groups.google.com/d/msg/enclojure/TNngOAAoIyE/9cKOk_zEquEJ Is this still true? On Sunday, October 27, 2013 7:51:39 PM UTC-3, James Reeves wrote: > > Compojure isn't deprecated. What made you think it was? > >

Re: [ANN] Intro tutorial

2013-12-29 Thread Zeynel
#x27;t you just print that page to a PDF file, no? > > On 29 December 2013 11:42, Zeynel > > wrote: > > I like it very much. Is there a pdf version? > > > > > > On Saturday, December 28, 2013 6:30:17 PM UTC-4, Karsten Schmidt wrote: > >> > &

How to debug this trace involving Korma

2013-12-29 Thread Zeynel
The first lines of the trace says: Failure to execute query with SQL: SELECT "GUESTBOOK" .* FROM "GUESTBOOK" :: [] JdbcSQLException: Message: Table "GUESTBOOK" not found; SQL statement SELECT "GUESTBOOK".* FROM "GUESTBOOK" ... I see that there is a "create-guestbook-table" in schema.clj (defn

Re: [ANN] Intro tutorial

2013-12-29 Thread Zeynel
I like it very much. Is there a pdf version? On Saturday, December 28, 2013 6:30:17 PM UTC-4, Karsten Schmidt wrote: > > Dear all, > > just wanted to briefly announce a new Clojure introduction tutorial > series with its first part (15k+ words) just been published: > > > http://www.creativeappl

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Ahmet Zeynel
rectory and everything in it. > > - James > > > On 28 December 2013 19:18, Ahmet Zeynel wrote: > >> Earlier I changed the permissions in /deploy but now I put it back to >> root and now I have: >> >> z@ubuntu:/deploy$ ll >> total 8164 >>

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Ahmet Zeynel
gt; Have you checked the logs in /var/log/upstart/nomilkforme.log? Perhaps > it's got something to do with the permissions of the deploy directory. > > - James > > > On 28 December 2013 17:08, Zeynel wrote: > >> I tried it like this and it seems to work: >> >&g

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Ahmet Zeynel
a look inside. > > - James > > > On 28 December 2013 17:24, Zeynel wrote: > >> Yes, but I don't see nomilkforme.log file. There are only .gz files: >> >> z@ubuntu:/var/log/upstart$ ls >> console-setup.log.1.gz >> container-detect.log.1.gz >

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
rotation, and starting on server boot. > > Have you checked the logs in /var/log/upstart/nomilkforme.log? Perhaps > it's got something to do with the permissions of the deploy directory. > > - James > > > On 28 December 2013 17:08, Zeynel > wrote: > >> I tried

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:4000 What's wrong with deploying it like this? On Saturday, December 28, 2013 10:53:29 AM UTC-4, Zeynel wrote: > > Can I deploy this as explained here > http://www.luminusweb.net/docs/deployment.md#running_standalone with > > java -jar

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
Ok, I am having problems starting nginx with upstart as mentioned by James Reeves. Would starting with tmux work as well. Can you give more info? On Wednesday, December 18, 2013 6:40:51 PM UTC-4, Curtis Gagliardi wrote: > > I don't know how to configure an init script, but I just run the command

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
> illustrates exactly what you are asking for: deploying a Clojure web app > behind nginx, with some monitoring, server-hardening, etc.. It's at: > https://thedevop.com > > A > > > On Tuesday, December 17, 2013 4:44:34 AM UTC-8, Zeynel wrote: >> >> I'v

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
ava -jar .jar > > > The jar file I place in "/deploy", a directory I've added in at the top > level. > > If all goes according to plan, then I can reload nginx and start my server: > > reload nginx > > start > > > Hope that helps. > > -

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
ot;/deploy" directory? > > - James > > > On 28 December 2013 01:33, Ahmet Zeynel >wrote: > >> I just tried it but I got the same error. Do I need to add exec or script >> in the conf file? Thanks. >> >> >> On Fri, Dec 27, 2013 at 9:20 PM, Jame

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Zeynel
you have a "deploy" user and a "/deploy" directory? > > - James > > > On 28 December 2013 01:33, Ahmet Zeynel >wrote: > >> I just tried it but I got the same error. Do I need to add exec or script >> in the conf file? Thanks. >> >&g

Re: How do I serve clojure pages with nginx

2013-12-27 Thread Ahmet Zeynel
a "deploy" user and a "/deploy" directory? > > - James > > > On 28 December 2013 01:33, Ahmet Zeynel wrote: > >> I just tried it but I got the same error. Do I need to add exec or script >> in the conf file? Thanks. >> >>

Re: How do I serve clojure pages with nginx

2013-12-27 Thread Ahmet Zeynel
I just tried it but I got the same error. Do I need to add exec or script in the conf file? Thanks. On Fri, Dec 27, 2013 at 9:20 PM, James Reeves wrote: > Perhaps try nomilkforme.conf instead of nomilkfor.me.conf ? > > - James > > > On 28 December 2013 00:27, Zeynel wro

Re: How do I serve clojure pages with nginx

2013-12-27 Thread Zeynel
buntu 13.10 on Samsung laptop" author "zeynel" start on startup stop on shutdown setuid deploy chdir /deploy console log env PORT=40

Re: How do I serve clojure pages with nginx

2013-12-25 Thread Zeynel
use nginx as proxy to jetty (or immutant?). I am trying to figure out the correct configuration for jetty and nginx. Each tutorial appears to be different and so far I couldn't make it work. On Friday, December 20, 2013 9:39:07 AM UTC-4, David Della Costa wrote: > > Hi Zeynel, > >

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Zeynel
proxied by Nginx as in the link above. > > Hope this helps-- > > DD > > (2013/12/17 21:44), Zeynel wrote: > > I've set up a home server with ubuntu and nginx and I can serve static > > pages. Now I want to add clojure but I am not sure what I need to do

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Zeynel
On Tuesday, December 17, 2013 9:02:19 AM UTC-4, David Della Costa wrote: > > ...I would probably simply push out an uberjar > with lein which I would run with Java via an init script--for example, > if using Ubuntu: > > http://upstart.ubuntu.com/cookbook/#run-a-java-application > > I want to

Re: How do I serve clojure pages with nginx

2013-12-17 Thread Zeynel
#x27;t need any of > the extra features provided by Immutant, then using Immutant won't give > you much more than Jetty. > > Zeynel writes: > > > Yes, this is helpful. I think this will be a good starting point for me > > once I read the references that you gave.

Re: How do I serve clojure pages with nginx

2013-12-17 Thread Zeynel
n uberjar), then set > up to run via an init script (via upstart in your case) on an > alternative port, which is proxied by Nginx as in the link above. > > Hope this helps-- > > DD > > (2013/12/17 21:44), Zeynel wrote: > > I've set up a home server with ubun

How do I serve clojure pages with nginx

2013-12-17 Thread Zeynel
I've set up a home server with ubuntu and nginx and I can serve static pages. Now I want to add clojure but I am not sure what I need to do. I asked the same question in StackOverflow but for some reason it is voted to be closed: http://stackoverflow.com/questions/20632987/how-to-serve-clojure

Re: Trying to use Heroku and Postgresql

2013-10-06 Thread Zeynel
3:53 PM UTC-4, Bruce Adams wrote: > > (System/getenv "DATABASE_URL") is returning *nil*. This will happen when > the system environment variable DATABASE_URL is not defined. > > - Bruce > > On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote: > > I am going thr

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
derstand what's going on. On Saturday, October 5, 2013 8:18:58 PM UTC-4, Zeynel wrote: > > Thanks. I found this article > https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java > and > I tried > > c:\Users\a\CLOJURE\shoute

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
ent variable DATABASE_URL is not defined. > > - Bruce > > On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote: > > I am going through this Heroku tutorial > https://devcenter.heroku.com/articles/clojure-web-application. I am > getting the following error when I try to creat

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
port' is not recognized as an internal or external command, operable program or batch file. Why is this not recognizing "export"? On Saturday, October 5, 2013 7:26:18 PM UTC-4, Zeynel wrote: > > I figured that I need to keep the command window where I initialized the > d

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
wrong? c:\>cd users/a/clojure/shouter c:\Users\a\CLOJURE\shouter>createdb shouter createdb: database creation failed: ERROR: database "shouter" On Saturday, October 5, 2013 4:54:09 PM UTC-4, Zeynel wrote: > > I am going through this Heroku tutorial > https://devcen

Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
I am going through this Heroku tutorial https://devcenter.heroku.com/articles/clojure-web-application. I am getting the following error when I try to create a table in the local Postgresql database user=>(sql/with-connection (System/getenv "DATABASE_URL") (sql/create-table :testi

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-02 Thread Zeynel
Ok. I created a project and there is core.clj file and I also ran the failing tests included in the project file. One thing I noticed the installer didn't do is that it did not put a shortcut to closure REPL on the start menu. I am just starting the windows command line from the start menu. O

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks everyone. I reinstalled Lein this time without using the window installer and it is now working. Thanks, again. On Tuesday, October 1, 2013 6:26:07 AM UTC-4, Zeynel wrote: > > I was hoping that someone here can help me to start with Clojure. Nothing > seems to be working now. Th

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
There is an explanation of the error message here http://dev.clojure.org/jira/browse/CLJ-5 but I did not understand if there is a fix or what causes the error. On Tuesday, October 1, 2013 6:26:07 AM UTC-4, Zeynel wrote: > > I was hoping that someone here can help me to start with C

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
I understand this, and I want to continue with Light Table, I liked it too. And the error pasted above is the same error that Light Table gives. I asked the same question in Light Table forum but there were no answers yet about the error message. https://groups.google.com/forum/#!topic/light-ta

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
Thanks. I am glad to hear that Light Table and Lein are working on Windows 8. I am using a wrapper to have the start button, but I did not have any problems related to that so far. I checked curl's site but I wasn't sure why I need it. I installed Lein using Windows installer and that worked. B

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
> recommended) > 2) create your work account in your user directory (e.g. > C:\Users\Zeynel\work) > > To add lein to your PATH, follow these steps: > > > http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx > > > -- --

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) C:\Users\a\work On Tuesday, October 1, 2013 6:45:16 AM UTC-4, Shantanu Kumar wrote: > > Hi Zeynel, > > I suspect you are fighting too many challenges at once. I would suggest > that you get Leiningen working

Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread Zeynel
I was hoping that someone here can help me to start with Clojure. Nothing seems to be working now. This is the thread with question about Light Table https://groups.google.com/forum/#!topic/light-table-discussion/Nif7b82DrzY. Light Table cannot connect to the project. This is the question abou

Re: Clojure box

2010-02-20 Thread Zeynel
On Feb 18, 6:45 pm, Brian Wolf wrote: > I use it all the time.  And its a gentle introduction to emacs Ok. So Clojure box installs the clojures on windows? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: Clojure box

2010-02-20 Thread Zeynel
On Feb 18, 11:32 pm, Sean Devlin wrote: > Do you need to do a lot of Java work as well?  If so, take a look at > Enclojure (Netbeans) or Counter Clockwise (Eclipse). > No. I just want to install Clojure and start with some tutorials. I was wondering about the installation process of clojure on win

Clojure box

2010-02-18 Thread Zeynel
Hello, I am totally new to Clojure. Do you recommend using Clojure Box for windows installation? I am not an expert user or programmer. Thank you. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou