How to create a .bat file that the ionic serves?

1

Good evening, I'm trying to create a .bat file to run the ionic serve, but I'm not getting good results and I need help! Here's what I did:

cd C: \ Users \ ernetwork \ Desktop \ ERN_ADM \ install \ site \ project ionic serves but it does not work.

    
asked by anonymous 29.09.2017 / 23:34

1 answer

1

1) use quotation marks in the path

2) add in bat: cd /d %~pd0

3) run the ionic server call ( see the command here! )

4) Verify that the variables are available and correct ( see variables here ) p>

cd "C:\Users\ernetwork\Desktop\ERN_ADM\instação\site\projeto ionic serve"
    
25.11.2018 / 18:44