1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Sapiranga, Rio Grande do Sul, Brazil
    Posts
    77
    Vote Rating
    1
    sergiomichels is on a distinguished road

      0  

    Default Best way to handle store urls?

    Is there some way to handle globally the store url's? Let's say that the project in one machine is located in localhost:8080, and another in localhost:8086. If I put that in the url param I need to change in all stores.

    I think that I can set relative url's, but what if I want to load automatic them to see the data in a grid?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    This is a common case that we support via url prefix.

    Keep all of your urls relative and then set your url prefix to http://localhost:8080 or http://localhost:8086 depending on what environment you are in.
    Aaron Conran
    @aconran

Thread Participants: 1

Tags for this Thread