Results 1 to 3 of 3

Thread: Different parameters for build and development environments

  1. #1

    Default Different parameters for build and development environments

    I have a Config.js file in which I store some general configuration parameters, in this case, a webservice url for the stores to consume services. I would like to have the same parameter with different values depending on the environment, development and production.

    Is this the correct way? Should that parameters be placed under app.json ? If yes, what's the way to point from the code to that parameters inside app.json?.

    Same question in StackOverflow: http://stackoverflow.com/questions/3...t-environments

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    You can define these different properties in your builds inside app.json. Then, from within your application, you can access this directly from Ext.manifest.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha User mcelotti's Avatar
    Join Date
    Nov 2013
    Posts
    82
    Answers
    1

    Default

    Thank you Tristan, your solution works great!

Similar Threads

  1. Replies: 13
    Last Post: 18 Aug 2016, 7:29 AM
  2. Adding your own development targets to build.xml
    By wpostma in forum Sencha Cmd
    Replies: 1
    Last Post: 28 Jan 2016, 2:33 PM
  3. Replies: 1
    Last Post: 23 Mar 2015, 10:57 AM

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
  •