Results 1 to 2 of 2

Thread: Best way to handle store urls?

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Sapiranga, Rio Grande do Sul, Brazil
    Posts
    77
    Vote Rating
    1
      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,487
    Vote Rating
    145
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •