microsoft / microsoft/PowerApps-Samples
upload-code-site creates a new website every time
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce.
- Create a react app on local machine.
- Use the following command to upload the code to PowerPages website.
pac pages upload-code-site --rootPath . --siteName northstarleadership --compiledPath ./dist - the website gets uploaded successfully.
- Now make any changes to the website (code, artifacts, images etc..)
- Run the command in step-2 again.
Result : A new inactive website gets generated instead of a updating the same website.
See images below.
1. I have an active website.
2. I run below command
pac pages upload-code-site --rootPath . --siteName northstarleadership --compiledPath ./dist
Initializing Power Pages in folder: C:\Users\ShashankBhide\OneDrive - Kerv\Shashank@Kerv\repos\CRMGenDev\BlogPortalsSPA
Creating Power Pages records for compiled artifacts
Found 10 bundle pattern(s) to match for cleanup:
1. main.*.js
2. main.*.css
3. vendor.*.js
4. vendor.*.css
5. chunk-*.js
6. chunk-*.css
7. bundle.*.js
8. bundle.*.css
9. index-*.js
10. index-*.css
Note: You can customize these patterns by adding 'bundleFilePatterns' array in 'powerpages.config.json' file.
Cleanup summary: Deleted 0 bundle directories
Updating Home page, header and footer web templates
Uploading changes
-
Started uploading website data
Connected to... Development
Loading Power Pages website manifest...
Found 130 records to process across 45 entities
Manifest loaded successfully.
Uploading - [--------------------] 2.2% ETA: 00:43 (Events: 1/46) [Threads: 22]
Uploading - [###-----------------] 13.0% ETA: 00:24 (Events: 6/46) [Threads: 18]
Uploading - [#####---------------] 23.9% ETA: 00:24 (Events: 11/46) [Threads: 13]
Uploading - [######--------------] 30.4% ETA: 00:22 (Events: 14/46) [Threads: 10]
Uploading - [########------------] 39.1% ETA: 00:18 (Events: 18/46) [Threads: 6]
Uploading - [#########-----------] 45.7% ETA: 00:17 (Events: 21/46) [Threads: 3]
Uploading - [##########----------] 50.0% ETA: 00:15 (Events: 23/46) [Threads: 0]
Uploading - [##########----------] 52.2% ETA: 00:20 (Events: 24/46) [Threads: 22]
Uploading - [###########---------] 56.5% ETA: 00:18 (Events: 26/46) [Threads: 21]
Uploading - [#############-------] 67.4% ETA: 00:14 (Events: 31/46) [Threads: 16]
Uploading - [################----] 78.3% ETA: 00:09 (Events: 36/46) [Threads: 11]
Uploading - [##################--] 89.1% ETA: 00:04 (Events: 41/46) [Threads: 6]
Uploading - [##################--] 91.3% ETA: 00:03 (Events: 42/46) [Threads: 5]
Uploading - [###################-] 95.7% ETA: 00:01 (Events: 44/46) [Threads: 3]
Uploading - [####################] 100.0% ETA: calculating... (Events: 46/46) [Threads: 1]
Uploading - [####################] 100.0% ETA: calculating... (Events: 46/46) [Threads: 0]
Uploading - [####################] 100.0% ETA: calculating... (Events: 46/46) [Threads: 1]
Power Pages website upload succeeded in 51.29 secs.
Connected to... Development
Upload complete
3. I get another website with same name.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem with the pac pages upload-code-site command and the shown rootPath, siteName, and compiledPath values. Trace the upload-code-site entry point and its website lookup or creation behavior, then verify that rerunning the command updates the existing website rather than creating another inactive one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, react
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100