Set store_ip in config.yml
This commit is contained in:
1 parent
7a4ad240a8
commit
2cdb5a756d
3 files changed
+3
-2
No files matched your search
@@ -20,7 +20,7 @@ class Admin::PurchasesController < ApplicationController
|
||||
protected
|
||||
|
||||
def download_purchase(purchase, url)
|
||||
uri = URI.parse("http://localhost:3001/download/design")
|
||||
uri = URI.parse("http://#{APP_CONFIG['store_ip']}/download/design")
|
||||
http = Net::HTTP.new(uri.host, uri.port)
|
||||
request = Net::HTTP::Post.new(uri.request_uri)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% if @site && @site.registered? %>
|
||||
registered
|
||||
<% else %>
|
||||
<%= link_to 'register', 'http://localhost:3001/user/sites/register?' +
|
||||
<%= link_to 'register', "http://#{APP_CONFIG['store_ip']}/user/sites/register?" +
|
||||
{:site => {:school => @site.school, :department => @site.department}}.to_query,
|
||||
:target => '_blank' %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user