diff --git a/lib/ask/runtime/session.ex b/lib/ask/runtime/session.ex index e509560c4..69bb9aea1 100644 --- a/lib/ask/runtime/session.ex +++ b/lib/ask/runtime/session.ex @@ -94,7 +94,11 @@ defmodule Ask.Runtime.Session do end defp url(respondent_id) do - shorten("#{Ask.Endpoint.url}/mobile_survey/#{respondent_id}?token=#{Respondent.token(respondent_id)}") + shorten("#{mobile_base_url()}/mobile_survey/#{respondent_id}?token=#{Respondent.token(respondent_id)}") + end + + defp mobile_base_url() do + System.get_env("MOBILE_WEB_BASE_URL") || Ask.Endpoint.url end defp shorten(url) do diff --git a/mix.exs b/mix.exs index d8fbb3fd4..fb039d6f4 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule Ask.Mixfile do def project do [app: :ask, - version: "0.10.2", + version: "0.10.3", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers,