Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building process is replacing index.php file #1666

Closed
noopple opened this issue Aug 12, 2016 · 2 comments
Closed

Building process is replacing index.php file #1666

noopple opened this issue Aug 12, 2016 · 2 comments

Comments

@noopple
Copy link

noopple commented Aug 12, 2016

Issue info:

  1. El Capitan
  2. angular-cli: 1.0.0-beta.10, node: 5.3.0, os: darwin x64
  3. nothing, just new application created by cli

The problem is in building process. I am trying to build with --output-path flag. In result, cli replaces my index.php file in output folder by index.html existing in src folder.
I tried to delete index.html. Result: my index.php in output folder is also deleted.

In ideal, I want to hold index.php in output file and add to git and delete from my src folder index.html. Is there any way to make this happen?

I want to link angular 2 with Laravel framework.

Thank you


@hansl
Copy link
Contributor

hansl commented Aug 15, 2016

The output folder will always be entirely replaced. You can use the public/ folder to have your index.php which will be copied to your output folder, or output the app to a separate folder and copy the files yourself.

This is by design and will not change. This is a build output folder, not a deploy folder. You should separate those two steps.

@hansl hansl closed this as completed Aug 15, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants