App reviews, troubleshooting, and recommendations
I have updated the app urls and callback url for my existing app. Before the url is localhost, but now I have hosted in in a cloud server and assigned a domain and updated this domain in the app url and callback url. But when i am trying to install app from app overview page, it is still redirecting to localhost only. How can i change this behavior?
I have written my code in ruby and used shopify api and shopify app gem
Greetings from the Store Watchers Support Team! Happy to help you today.
To change this behavior you have to change the URL in the code as well.
I am using shopify_app gem developed in Ruby. Below is the configuration. I had set the ENV['HOST'] to the actual domain and restarted the server. Even after this, the redirect_uri is still fixed to locahost
Rails.application.config.after_initialize do
if ShopifyApp.configuration.api_key.present? && ShopifyApp.configuration.secret.present?
ShopifyAPI::Context.setup(
api_key: ShopifyApp.configuration.api_key,
api_secret_key: ShopifyApp.configuration.secret,
api_version: ShopifyApp.configuration.api_version,
host_name: ENV['HOST'],
scope: ShopifyApp.configuration.scope,
is_private: !ENV.fetch('SHOPIFY_APP_PRIVATE_SHOP', '').empty?,
is_embedded: ShopifyApp.configuration.embedded_app,
session_storage: ShopifyApp::SessionRepository,
logger: Rails.logger,
private_shop: ENV.fetch('SHOPIFY_APP_PRIVATE_SHOP', nil),
user_agent_prefix: "ShopifyApp/#{ShopifyApp::VERSION}"
)
ShopifyApp::WebhooksManager.add_registrations
end
end
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025