From 7da9a1d5a7415bdfd7c440e987de1cded7c66577 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 7 May 2015 14:45:07 -0700 Subject: [PATCH] Use production server in /dist --- Gruntfile.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 20b1baff0..15139a8ca 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -134,7 +134,16 @@ module.exports = function(grunt) { }, copy: { dist: { - files: [{ expand: true, dest: 'dist/', src: ['<%= dist.src %>'] }] + files: [{ expand: true, dest: 'dist/', src: ['<%= dist.src %>'] }], + options: { + process: function(content, srcpath) { + return content.replace( + /textsecure-service-staging.whispersystems.org/g, + 'textsecure-service.whispersystems.org').replace( + /whispersystems-textsecure-attachments-staging.s3.amazonaws.com/g, + 'whispersystems-textsecure-attachments.s3.amazonaws.com'); + } + } } }, jscs: {