- heroku: dev-4tune.4tius.com
We recommend nvn for managing different versions as well as avn for automatic node version switching.
Once you have nvm and avn setup, install the required node version with nvm :
nvm install v4.2.4
cd ./web-app
npm install
bower install
Type in the command shell:
npm start
#or
gulp serve- The default API is pointing to localhost server (you need to run this first)
- To point to a different target specify the destination target:, e.g.:
gulp serve --prod
- --local (API points to
http://localhost:1337/apiindebug mode on) - --dev (API points to
http://dev-api.4tius.com/apiindebug mode on) - --stg (API points to
http://stg-api.4tius.com/apiindebug mode off) - --prod (API points to
http://api.4tius.com/apiindebug mode off) - --heroku (API points to
http://4tiusExercise.herokuapp.com/apiindebug mode on) (this serve will be removed soon)
- --nobrowser prevent the app to open in a new window of the Web Browser
- e.g.:
gulp serve --heroku --nobrowser
- e.g.:
- --nosync prevent browser sync at all
- e.g.:
gulp serve --heroku --nosync
- e.g.:
You must specify a target. Available targets:
- --dev (run on
./build/www-dev, E.g.:gulp build --dev) - --stg (run on
./build/www-stg, E.g.:gulp build --stg) - --prod (run on
./build/www-prod, E.g.:gulp build --prod) - --heroku (run on
./heroku/app, E.g.:gulp build --heroku)
If the target is not specified will default to --dev
To build the development app type:
gulp build --devTo run the app from dev folder(./build/www-dev):
gulp serve-build --devTo build the heroku app type:
gulp build --herokuTo run the app from heroku folder(./build/heroku):
gulp serve-build --herokuAn instance of the application is running in local environment over the port 8080, to see it open your web browser and go to http://localhost:8080/.
In order to emulate the web version of the app running in heroku use the following command:
npm run heroku-local