1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    91
    Answers
    3
    Vote Rating
    1
    ZyBeR is on a distinguished road

      0  

    Default Answered: Rename index.html to index.php?

    Answered: Rename index.html to index.php?


    Is there anyway of building for production with index.html renamed to index.php?

    Everything works in developer more, but when building for production it fails.
    I would like to run some auto login stuff when the app loads and it would be best to so it directly in the index file.

    I looked in the sencha.cfg but didn't find anything.

  2. In the build.xml in the app root directory (assuming you are using Sencha Cmd) you can add this:

    Code:
        <target name="-after-build">
            <copyfile src="index.php" dest="${build.dir}/index.php"/>
        </target>
    within the <project> node

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    In the build.xml in the app root directory (assuming you are using Sencha Cmd) you can add this:

    Code:
        <target name="-after-build">
            <copyfile src="index.php" dest="${build.dir}/index.php"/>
        </target>
    within the <project> node
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    64
    Vote Rating
    0
    kbujold is on a distinguished road

      0  

    Default


    When I do this I get this error during build seems like its looking for the index.html still

    Capture.jpg

  5. #4
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    64
    Vote Rating
    0
    kbujold is on a distinguished road

      0  

    Default


    I have solved this. You remove those lines from the build.xml and modify the sencha.cfg file in the app.

    Code:
    # This property can be modified to change the input and output page file 
    
    # used in the compile command. (eg: index.aspx, index.jsp ... )
    
    app.page.name=index.php
    

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi