Enviroment Develop : Setup Canvas

301 views
Skip to first unread message

jbedons...@gmail.com

unread,
Jul 1, 2014, 6:22:31 PM7/1/14
to canvas-l...@googlegroups.com
Hi,
I'm trying to do changes on canvas lms, but when i have to check the changes, i have to run the command "bundle exec rake canvas:compile_assets" but it takes a long time to process it.
I have created a instance on a Virtual Machine following the production guide tutorial. I would like to setup in a develop enviroment 

Simon Williams

unread,
Jul 1, 2014, 7:22:14 PM7/1/14
to canvas-l...@googlegroups.com
I assume you’ve already seen https://github.com/instructure/canvas-lms/wiki/Quick-Start.  You can also run “guard” in a terminal which will watch for changes to coffeescript or sass and compile files on the fly as they change. 

Simon

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Graham Ballantyne

unread,
Jul 1, 2014, 8:00:47 PM7/1/14
to canvas-l...@googlegroups.com
If you're changing JS, CSS or CoffeeScript files and running in production mode, then yes you need to recompile assets to see the change. If you're changing ruby files then you don't need to recompile assets, but you do need to restart Canvas. 

For development work, you should probably be running in development mode (RAILS_ENV=development). It will use uncompiled static assets and ruby classes will be reloaded on each page view so it will be very slow. If you need to run in production but don't want to have to recompile assets, you can tweak config/environments/production.rb (I think, not at a computer right now) to not used compiled JS. You don't want to run in actual production like that, though. 
--

Simon Williams

unread,
Jul 1, 2014, 8:23:17 PM7/1/14
to canvas-l...@googlegroups.com
Note that you can turn off class reloading in development mode with the tip at the bottom of https://github.com/instructure/canvas-lms/wiki/Quick-Start#performance-tweaks.  Most of us at instructure prefer to take the penalty of manually restarting the server after making a ruby change rather than having all page loads be slow while developing.  We’re also working on some improvements on this front — stay tuned.

Simon

Graham Ballantyne

unread,
Jul 1, 2014, 8:36:27 PM7/1/14
to canvas-l...@googlegroups.com
My dev VM is usually in production mode; I'll just bounce apache when I need to make a ruby change. 

Jose Bedon

unread,
Jul 2, 2014, 11:45:30 AM7/2/14
to canvas-l...@googlegroups.com
Hi guys,
thanks for answering, i'm trying to modify handlebars files, specifically "app/views/jst/conferences/*.handlebars" , i tried to restart canvas too.

elzbie...@gmail.com

unread,
Nov 25, 2014, 6:19:56 PM11/25/14
to canvas-l...@googlegroups.com
Have you solved this issue? I am trying to achieve the same thing and nothing changes when i edit a .handlebars file.
Reply all
Reply to author
Forward
0 new messages