Install Canvas-LMS under Windows

1,587 views
Skip to first unread message

Trương Hoàng Dũng

unread,
Jan 7, 2013, 2:44:13 AM1/7/13
to canvas-l...@googlegroups.com
I've successfully installed and run Canvas LMS under Windows (with some modified gems). But i've got a problem:

 I've used gem 'activerecord-postgresql-adapter' to use postgresql in production, but when i run command:
"set ENV=production
bundle exec thin -R config.ru start"

it output error: Invalid connection adapter
I guess the system can't find correct postgresql adapter gem here.

Do you know how to use postgresql setting within Rails 2.3.4 under Windows ?


Brian Whitmer

unread,
Jan 7, 2013, 11:41:07 AM1/7/13
to canvas-l...@googlegroups.com
Good luck, you're in uncharted waters :-). I had Canvas running on Windows about eight months ago, but haven't tried since then and I know some things have changed. I was using mysql back then, I never did try postgres on Windows. Not sure if anyone has run that setup before.

-Brian





--
 
 
 



--

  

Trương Hoàng Dũng

unread,
Jan 7, 2013, 6:32:58 PM1/7/13
to canvas-l...@googlegroups.com
- The strange thing is, i also have my CAS server running using Ruby, and i can use the gem activerecord-postgresql-adapter succesfully in production. So i think this is the activerecord version problem. Besides, the sqlite3 adapter works well for testing.
- In order to setup in Windows, i have to modify some things: the assets need to be compiled in a VM (it used Parallel gem, which only support Unix), nginx to proxy the public assets(really fast, thank God), some Gem version need to be downgrade to have the Windows (Mingw) version, and the last thing, the background job is again need to be run inside a VM.
- I don't know if that setup can fullfill the real production requirements, but i think Canvas Community could change something to make the product really cross-platform, which will be great to get more attention all over the eucation institutes.

s.bik...@gmail.com

unread,
Apr 7, 2015, 6:05:15 AM4/7/15
to canvas-l...@googlegroups.com
Can you please tell me how to install it under Windows ?
Reply all
Reply to author
Forward
0 new messages