React deployment doesn't work unless I commit build folder
See original GitHub issueHello,
Firstly, I would like to thank you for this package, it has really helped me perform continuous deployment with smoothly to my FTP server without much hassle, I honestly appreciate it.
Based on your documentation, I can upload my react build folder to my server without commiting it by adding !build
to my .git-ftp-include file, however, I have tried but it tells me that the build folder cannot be found, when I remove build
folder from .gitignore and commit then push to github it uploads to my FTP server. How can I solve this problem because I am trying to avoid pushing my build folder to github.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why is create-react-app's build directory in .gitignore?
The build directory is in .gitignore as it can be generated from the existing files. To minimize upload/download time only essential items ...
Read more >Deployment | Create React App
The build folder with static assets is the only output produced by Create React App. However this is not quite enough if you...
Read more >Customize build folder #1354 - facebook/create-react-app
On a project I'm currently working on, we're using a file called BUILD that specifies build instructions for our microservices.
Read more >Deploying React apps to GitHub Pages - LogRocket Blog
This tutorial is limited to demonstrating how to deploy a React application to GitHub Pages, so we'll leave the current setup as it...
Read more >How to deploy React App to GitHub Pages
Did you build React app and want to deploy it, following these simple steps you able to deploy and showing the world your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finally managed to make it work, removed the deploy job and placed all the steps under one job, your initial suggestion of placing
!build/
folder in .git-ftp-include file is the solution. I’ll add my code below incase someone faces the same problem.Hello, sorry I wasn’t able to give early feedback based on the suggestion you presented. I tried what you suggested and unfortunately, the problem still persists.