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?

    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 - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,363
    Vote Rating
    128
    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
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread