T
typemismatch
Hi,
I'm having a lot of problems trying to "require" my own .rb files from
a lib folder in my project.
My structure is simple enough.
app\
app\lib
app\feature
app\feature2
I have all shared code in \lib and in any feature code I do a require
'..\lib\whatever.rb'
It runs fine locally but if I run on a server using Cron or a Daemon
the base path seems to be always set to something else so ..\lib
doesn't exist. My server and my dev. environments are very different
so it means hacking server deployments to find library files.
What is the correct method here? To wrap my lib code in a gem?
thanks!
-c
I'm having a lot of problems trying to "require" my own .rb files from
a lib folder in my project.
My structure is simple enough.
app\
app\lib
app\feature
app\feature2
I have all shared code in \lib and in any feature code I do a require
'..\lib\whatever.rb'
It runs fine locally but if I run on a server using Cron or a Daemon
the base path seems to be always set to something else so ..\lib
doesn't exist. My server and my dev. environments are very different
so it means hacking server deployments to find library files.
What is the correct method here? To wrap my lib code in a gem?
thanks!
-c