Login
or
register
LuaRocks
Versioned Components For Lua
Overview
Home Page
Mailing list
Browse rocks
Links
Download
Download
Installing on Unix
Installing on Windows
Release history
License
Documentation
Documentation
File formats
Development
Feedback
refresh-cache
Anonymous users must enter
captcha
below.
Page Parameters
Page Name (for URL)
Page Title
Don't put anything here
Don't put anything here
Show Advanced Options
Category
Don't put anything here
Don't put anything here
Don't put anything here
Prototype
Page Content
'''refresh-cache''' - Refresh local cache of a remote rocks server. == Usage == :'''[[luarocks-admin]] refresh-cache <nowiki>[</nowiki>--from=''server''<nowiki>]''' The flag --from indicates which server to use. If not given, the default server set in the '''upload_server''' variable from the [[Config file format|configuration file]] is used instead. You need to either explicitly pass a full URL to --from or configure an upload server in your configuration file prior to using the "refresh-cache" function. == Example == === Basic example === Refresh the cache of your main upload server: luarocks-admin refresh-cache === Handling multiple repositories === Assuming your ~/.luarocks/config.lua file looks like this: upload_server = "main" upload_servers = { main = { http = "www.example.com/repos/main", sftp = "myuser@example.com/var/www/repos/main" }, dev = { http = "www.example.com/repos/devel-rocks", sftp = "myuser@example.com/var/www/repos/devel-rocks" }, } you can specify which cache to refresh with the --from flag: luarocks-admin refresh-cache --from=dev
Don't put anything here
About this Edit
Minor Edit
Edit Summary
Powered by
Sputnik
|
XHTML 1.1