two tweaks to help production deploy
This commit is contained in:
parent
1c0f6f2e2a
commit
14a292331b
2 changed files with 2 additions and 3 deletions
|
@ -1933,8 +1933,7 @@ Metamaps.Realtime = {
|
||||||
});
|
});
|
||||||
$('body').click(self.close);
|
$('body').click(self.close);
|
||||||
|
|
||||||
var realtimeServerUrl = '<%= ENV['REALTIME_SERVER'] %>'
|
self.socket = io.connect('<%= ENV['REALTIME_SERVER'] %>');
|
||||||
self.socket = io.connect(realtimeServerUrl);
|
|
||||||
self.socket.on('connect', function () {
|
self.socket.on('connect', function () {
|
||||||
self.startActiveMap();
|
self.startActiveMap();
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
<!-- app code -->
|
<!-- app code -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
require.config({baseUrl: '/famous/'});
|
require.config({baseUrl: '<%= "#{ asset_path '/famous/main.js' }".chomp('main.js') %>'});
|
||||||
require(['main']);
|
require(['main']);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue