leafo / lapis

A web framework for Lua and OpenResty written in MoonScript
http://leafo.net/lapis/
MIT License
3.14k stars 247 forks source link

Module Migrations not found #773

Closed ropoko closed 1 year ago

ropoko commented 1 year ago

I'm using lua 5.1 lapis version: 1.14.0 OS: MacOs

after running lapis migrate, I got:

Error: module 'migrations' not found:No LuaRocks module found for migrations
        no field package.preload['migrations']
        no file '/usr/local/share/lua/5.1/migrations.lua'
        no file '/usr/local/share/lua/5.1/migrations/init.lua'
        no file './migrations.lua'
        no file '/opt/homebrew/share/lua/5.1/migrations.lua'
        no file '/opt/homebrew/share/lua/5.1/migrations/init.lua'
        no file '/opt/homebrew/lib/lua/5.1/migrations.lua'
        no file '/opt/homebrew/lib/lua/5.1/migrations/init.lua'
        no file '/Users/rodrigomaganhastramantinoli/.luarocks/share/lua/5.1/migrations.lua'
        no file '/Users/rodrigomaganhastramantinoli/.luarocks/share/lua/5.1/migrations/init.lua'
        no file '/usr/local/lib/lua/5.1/migrations.so'
        no file './migrations.so'
        no file '/opt/homebrew/lib/lua/5.1/migrations.so'
        no file '/opt/homebrew/lib/lua/5.1/loadall.so'
        no file '/Users/rodrigomaganhastramantinoli/.luarocks/lib/lua/5.1/migrations.so'
 * Run with --trace to see traceback
 * Report issues to https://github.com/leafo/lapis/issues
ropoko commented 1 year ago

nevermind, I was in the wrong path