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:
parent
b39f3ba369
commit
76c59ce745
@ -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
|
||||
################################################################################
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user