facebook

Angular server in –prod mode

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #527153 Reply

    Fedor Losev
    Participant

    Starting Angular2 with –prod is relatively frequent operation (since it builds/works quite differently and needs to be checked on large changes).

    Adding capability for multiple servers with different configuration on the same project would be very nice and will solve the issue.

    Alternatively, it may be easier to implement (and use in this particular case) additional Start Production command for the single angular server.

    Ideally it should allow both features.

    #527284 Reply

    support-swapna
    Moderator

    Fedor,

    We support multiple configurations for the same project using the Launch configurations.
    “Angular CLI Application” is the name of the launch config type. You can create a new launch config for the type and it will appear as a new server in the Servers view.

    You can also customize the ng serve command line when creating the launch config to start the server in prod mode. You can add ‘–environment=prod’ or ‘–prod’ in the Custom ‘ng serve’ command arguments box. We made dev as default mode as it is the most commonly used one.

    You can also modify the custom ng serve command args by right clicking on the server in the Servers view and select ‘Properties’. Modify or add the args accordingly and restart the server.

    Hope this helps. Please let us know if you see any issues.

    –Swapna
    MyEclipse Support

    #527291 Reply

    Fedor Losev
    Participant

    Ah, right, I forgot it is just a launch command. The right click in Servers / Angular CLI / New server is confusing, may be good idea to add an Angular CLI command there.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Angular server in –prod mode

You must be logged in to post in the forum log in