two tweaks to help production deploy

This commit is contained in:
Devin Howard 2016-01-19 14:27:25 +08:00
parent 1c0f6f2e2a
commit 14a292331b
2 changed files with 2 additions and 3 deletions

View file

@ -1933,8 +1933,7 @@ Metamaps.Realtime = {
});
$('body').click(self.close);
var realtimeServerUrl = '<%= ENV['REALTIME_SERVER'] %>'
self.socket = io.connect(realtimeServerUrl);
self.socket = io.connect('<%= ENV['REALTIME_SERVER'] %>');
self.socket.on('connect', function () {
self.startActiveMap();
});

View file

@ -21,7 +21,7 @@
<!-- app code -->
<script type="text/javascript">
require.config({baseUrl: '/famous/'});
require.config({baseUrl: '<%= "#{ asset_path '/famous/main.js' }".chomp('main.js') %>'});
require(['main']);
</script>