[Sputnik-list] Running sputnik on Windows
Yuri Takhteyev
yuri at sims.berkeley.edu
Thu Dec 6 14:14:48 GMT+3 2007
Yes, definitely. Just use cgilua_sputnik.lua for that. I.e., copy
cgilua_sputnik.lua to web/sputnik.lua and then access it as
/sputnik.lua. Just make sure to edit your sputnik/config.lua, setting
BASE_URL to "/sputnik.lua" instead of "/sputnik.cgi"
- yuri
On Dec 6, 2007 4:45 AM, Xu Wang <xu4wang at gmail.com> wrote:
> I'm just thinking is it possible we don't touch the Kepler/CGIlua
> configuration files. but just make sputnik.lua a normal cgi script,
> and running it using something like
>
> http://localhost:8080/sputnik.lua?...
>
> I guess it will be easier to install the wiki as a normal cgi, and in
> this way we get the benefit of having other application in the Kepler
> web directory functional as normal.
>
> Is it possible?
>
> Regards,
> xu
>
>
> On 06/12/2007, Xu Wang <xu4wang at gmail.com> wrote:
> > Yuri,
> >
> > Thanks for the reply. being a newbie to Kepler, I still am not able to
> > get it running.
> >
> > Looks like there is no KEPLER_LUA, KEPLER_WEB and KEPLER_CONF defined
> > in windows version of "kepler_init.lua", so I added the following to
> > the install.lua
> >
> > KEPLER_LUA = KEPLER_DIR .. '\lua'
> > KEPLER_WEB = KEPLER_DIR .. '\web'
> > KEPLER_CONF = KEPLER_DIR .. '\conf'
> >
> > and I was using:
> >
> > D:\tmp\sputnik-0.3.0-beta-2-rc1>D:\\Kepler\\1.1\\bin\\lua5.1.exe install.lu
> > a D:\\Kepler\\1.1\\bin\\kepler_init.lua D:\\Kepler\\1.1\\ D:\\Kepler\\wiki\\data
> > \\bin
> > ----
> > nil
> > ----
> > 2.1 Create the initial wiki-data directory
> > (in D:\\Kepler\\wiki\\data)
> > 2.2 Copy the cgi executable to the local directory
> > 2.3 Copy all the files to the installation directory...
> > 2.4 Generate the config file and write it to
> > D:\\Kepler\\1.1\\lua/sputnik/config.lua
> > 2.5 Replace D:\\Kepler\\1.1\\conf/cgilua/config.lua
> > with our version
> >
> > D:\tmp\sputnik-0.3.0-beta-2-rc1>
> >
> > Everything looks fine, but when I tried http://localhost:8080/ I got
> > the following errors in my browser:
> >
> > d:\Kepler\1.1\lua/sputnik/init.lua:171: attempt to concatenate field
> > 'NICE_URL' (a nil value)
> > stack traceback:
> > d:\Kepler\1.1\lua/coxpcall.lua:24: in function
> > (tail call): ?
> > (tail call): ?
> > d:\Kepler\1.1\lua/cgilua.lua:438: in function '_xpcall'
> > d:\Kepler\1.1\lua/cgilua.lua:544: in function 'main'
> > [string "..."]:57: in function <[string "..."]:57>
> >
> >
> > Any clue? where is NICE_URL supposed to be defined?
> >
> > Regards,
> > Xu
> >
> > On 06/12/2007, Yuri Takhteyev <yuri at sims.berkeley.edu> wrote:
> > > Try the attached install.lua, which now uses the globals defined by
> > > kepler_init instead. The only like that still builds a path relative
> > > to KEPLER_DIR is now
> > >
> > > copy(KEPLER_DIR.."/bin/cgi", "sputnik.cgi")
> > >
> > > I would replace it, but I am not sure where cgi file goes on windows
> > > (and Kepler doesn't seem to define a variable for the bin directory).
> > >
> > > You might have to just commet out that line and then copy your cgi.exe
> > > over manually.
> > >
> > > - yuri
> > >
> > >
> > > On Dec 5, 2007 3:18 AM, Xu Wang <xu4wang at gmail.com> wrote:
> > > > Hi,
> > > >
> > > > Is anybody running sputnik wiki on windows? I look at the install.lua
> > > > and found the directory structure for Kepler is not the same as my
> > > > kepler installation... see below.
> > > >
> > > > D:\KEPLER
> > > > └─1.1
> > > > ├─apps
> > > > ├─bin
> > > > │ ├─md5
> > > > │ ├─mime
> > > > │ └─socket
> > > > ├─conf
> > > > │ ├─cgilua
> > > > │ └─xavante
> > > > ├─log
> > > > ├─lua
> > > > │ ├─cgilua
> > > > │ ├─logging
> > > > │ ├─lxp
> > > > │ ├─sapi
> > > > │ │ └─cgi
> > > > │ ├─socket
> > > > │ └─xavante
> > > > ├─tmp
> > > > └─web
> > > > ├─doc
> > > > │ ├─cgilua
> > > > │ ├─copas
> > > > │ ├─luaexpat
> > > > │ ├─luafilesystem
> > > > │ ├─lualogging
> > > > │ ├─luasocket
> > > > │ ├─luazip
> > > > │ ├─md5
> > > > │ ├─rings
> > > > │ └─xavante
> > > > └─img
> > > >
> > > > cheers,
> > > > xu
> > > >
> > > > _______________________________________________
> > > > Sputnik-list mailing list
> > > > Sputnik-list at lists.luaforge.net
> > > > http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Yuri Takhteyev
> > > Ph.D. Candidate, UC Berkeley School of Information
> > > http://takhteyev.org/, http://www.freewisdom.org/
> > >
> > >
> >
>
> _______________________________________________
> Sputnik-list mailing list
> Sputnik-list at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
>
>
--
Yuri Takhteyev
Ph.D. Candidate, UC Berkeley School of Information
http://takhteyev.org/, http://www.freewisdom.org/
More information about the Sputnik-list
mailing list