changed localhost to public ip

This commit is contained in:
Bilal
2017-11-06 19:52:57 +00:00
parent ec9a29e04d
commit 2e2551f3c3
4 changed files with 5 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ router.get ('/search/listings', async (req, res, next) => {
//Get only ads with location
query = Object.assign (query, {
has_map: true,
hasMap: true,
});
//AND

View File

@@ -1,7 +1,8 @@
import fetch from 'isomorphic-fetch'
const BASE_URL = 'localhost';
//const BASE_URL = 'localhost';
//const BASE_URL = '192.168.0.13';
const BASE_URL = '138.68.67.31';
export const saveContactRequest = (listingId, params) => {

View File

@@ -34,7 +34,7 @@ S poštovanjem
export const listingUrl = (id) => {
// TODO: fix this once removing hardcoded values
return `http://localhost:8080/?listingId=${id}`
return `http://http://138.68.67.31/?listingId=${id}`
}
export const isMobile = () => window.matchMedia("(max-width: 768px)").matches

View File

@@ -3,7 +3,7 @@ module.exports = {
output: {
path: __dirname + "/dist",
filename: "app.bundle.js",
publicPath: "http://0.0.0.0:8080/"
publicPath: "http://138.68.67.31:8080/"
},
devServer: {
// .. rest of devserver options