1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

feature #3748: Define dev and prod envs for sunstone

prod will pull the minified app.js
	dev will pull all the modules one by one
This commit is contained in:
Daniel Molina 2015-06-23 13:28:30 +02:00
parent b39f3ba369
commit 76c59ce745
2 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,12 @@
:memcache_port: 11211
:memcache_namespace: opennebula.sunstone
# Excution environment for Sunstone
# dev, Instead of pulling the minified js all the files will be pulled (app/main.js)
# NOTE. src/sunstone/public must be symlinked to /var/lib/one/ruby/sunstone/public
# prod, the minified js will be used (dist/main.js)
:env: 'prod'
################################################################################
# Log
################################################################################

View File

@ -158,5 +158,12 @@
</div>
<div class="large-12 columns" id="dialogs"></div>
</div>
<% if $conf[:env] == 'dev' %>
<script src="bower_components/requirejs/require.js" data-main="app/main"></script>
<% else %>
<script src="bower_components/requirejs/require.js" data-main="dist/main"></script>
<% end %>
</body>
</html>