Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:40
    daurnimator closed #1159
  • 03:08
    daurnimator locked #1159
  • 03:06
    sealcoms1111 commented #1159
  • 03:03
    sealcoms1111 opened #1159
  • Feb 22 03:16
    Richard092345 commented #1153
  • Feb 21 20:26
    Richard092345 closed #1153
  • Feb 21 20:26
    Richard092345 commented #1153
  • Feb 21 03:48
    Richard092345 commented #1153
  • Feb 20 18:19
  • Feb 20 18:18

    hishamhm on which-tool-err

    (compare)

  • Feb 20 18:18

    hishamhm on master

    fs: always check for failure of… (compare)

  • Feb 20 18:18
    hishamhm closed #1157
  • Feb 20 18:16
    hishamhm commented #1158
  • Feb 20 18:14
    hishamhm commented #1153
  • Feb 20 17:45
    Diamonde123 opened #1158
  • Feb 19 16:53
  • Feb 19 15:43
    Travis luarocks/luarocks@3e6e22d (which-tool-err) passed (2469)
  • Feb 19 14:33
    hishamhm opened #1157
  • Feb 19 14:33

    hishamhm on which-tool-err

    fs: always check for failure of… (compare)

  • Feb 19 08:55
    imolein commented #924
JumBê
@JumBe08
I've been battlign for some time now with luarocks-admin trying to use it, and even though the guys around here have been trying to explain it to a dummy like me, im still not getting it quite right xD
JumBê
@JumBe08
@Tieske I think I've been making some progress. Im out to try nginx, but in the mean time I've been trying to use an apache2 server on my ubuntu. Have you ever used an apache to set up a repo and successfully use luarocks-admin to add rocks to the server?
It is giving me some permissions error too, but Im having trouble to figure out why, and Im not sure this is luarocks or apache related
It gives out stuff like this when i run the command:

curl -T '{mod_twitter-scm-1.rockspec,index.html,manifest,manifest-5.1,manifest-5.1.zip,manifest-5.2,manifest-5.2.zip,manifest-5.3,manifest-5.3.zip}' http://localhost/var/www/html:80/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>405 Method Not Allowed</title>
</head><body>

<h1>Method Not Allowed</h1>

Thijs Schreijer
@Tieske
the -T switch is to upload right? that shouldn't be necessary. Just make the LuaRocks directory with the manifests etc, the root of your webserver.
@JumBe08
JumBê
@JumBe08
@Tieske Hm, that -T switch isnt coming from me, it is being executed either by luarocks or by apache2 I guess. I've made the Luarocks directory the root, with the rockspecs there and the manifest file. I can access it all already in my browser. Just need to figure what is stopping luarocks-admin add from doing its thing now
Thijs Schreijer
@Tieske
@JumBe08 ah, so you're trying to push rocks to the webserver? that will not work without a webapp. A webserver just gets a POST request, but unless it has an application to hand it of to, it will not know how to deal with it. Hence you get the 405 response.
I've never done this myself, but probably an FTP server could work. Since that protocol is a file based protocol, it should allow you to send data to the server without any additional application code.... I think....
JumBê
@JumBe08
Ah! Making progress then =D
Any suggestion about how to deal with that web app, using the apache server?
Thijs Schreijer
@Tieske
thgere is only one app I know, which the Luarocks.org website (it's on github)
but do you need to push rocks to the server over a network?
If you can do it locally, then you can just add the rocks, and regenerate the maniferst. Any clients can pull rocks from over the network
JumBê
@JumBe08
Well, uh, tbh i was just trying to discover how to really use the luarocks-admin tool
im doing this project for GSoC at prosody
where i am trying to make a plugin installer
btw, i saw farther behind in the conversation that you guys applied to GSoC too, but i missed it when i was searching through the orgs. I'll probably try to apply next year, if possible =D
anyway, we are doing a plugin installer, and i got some bridges to luarocks and luarocks-admin
and i was trying to test if my luarocks-admin implementation is working, so i was trying to really use luarocks-admin add
but i wanted to use my own server, because that's what we'll eventually do at prosody. Put those modules up somewhere on the web, and then i think this add command we'll be a easier way to add stuff there over time
will*
JumBê
@JumBe08
will be an easier*, thats the spelling xD
JumBê
@JumBe08
Guys, I got another question regarding luarocks =D
so lets say im making a rockspec. I got one folder with 2 files, for example source.lua and source.lib.lua
i know how to configure source.lua at the rockspec
at the build section i go to modules
and i wirte something like this: ["mod_source.mod_source"] = "mod_source/mod_source.lua"
but i cannot do the same for the other file. I try this: ["mod_source.mod_source.lib"] = "mod_source/mod_source.lib.lua"
it will create a lib directory instead of a file and the starting directory
the problem is that one file is named something.lua. How do you do if the file is named something.lib.lua? Because luarocks is looking at the "." and assumes it should open another folder
JumBê
@JumBe08
Greetings. I've made a very brave attempt at writing a blog posts about some basics regarding luarocks and how to use it. Decided to stop by and drop it here, in the hopes of collecting all the feedback/tips I can. Thanks for the attention and the help these last weeks =]
daurnimator
@daurnimator
@JumBe08 a nice thing to mention would be the new --lua-version argument in luarocks 3
it's underdocumented; but hugely useful
JumBê
@JumBe08
@daurnimator I'll give it a look O.o
Caleb Maclennan
@alerque
A major new version of Luarocks has a hugely useful new argument that nobody bothered to document? Nice. :headddesk:
daurnimator
@daurnimator
alerque: is that volunteering I hear? :)
JumBê
@JumBe08
You guys know any cool tutorials/posts detailing how to use arguably underdocumented luarocks features?
For example, I'd be super interested in some1 showing how to use the luarocks-admin command to its full potential
daurnimator
@daurnimator
not really..... I just learned by doing --help and trying them al
JumBê
@JumBe08
Even though there is clearly a good effort to document things, I've found that to be a bit painful =[
daurnimator
@daurnimator
but it's not well maintained... some of the info in there is quite outdated
JumBê
@JumBe08
yes, I noticed
still has got some neat stuff
but at least for me it works okay as long as im doing exactly what is in there
if I want to make something different i struggle a bit
but it might be because i need to know what im doing with other tools, that arent really luarocks related, and therefore dont have to be documented there