# Trouble deploying a site from Github using Kirby Webpack by Brocessing

**URL:** <https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 5, 2021, 12:40am UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467 "2021-03-05T00:40:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandonalexandertong](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brandonalexandertong/32/9815_2.png) [@brandonalexandertong](https://forum.getkirby.com/u/brandonalexandertong)\
**Post date:** [March 5, 2021, 12:40am UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/1 "2021-03-05T00:40:26Z")

</div>

Hello everyone!

Just wrapped up a site using the Kirby Webpack setup from Brocessing. Was really great to have a lot of those development tools on hand, though now when attempting to deploy the site I’m really having a hard time.

I’m using Cloudways to deploy from a git repo that has the site in it, and initially I initially attempted to deploy using the deployment path: public\_html/www/ (as kirby webpack deploys the entire site from /www/), and the site didn’t render at all at it’s url, I just got the boilerplate cloudways marketing page.

I then contacted customer service and he told me to change the webroot to public\_html/www/ as well in the application settings. The website then just threw an error page. When I looked at the logs I got this error:

PHP Warning: require(/home/559072.cloudwaysapps.com/zucckrnfsc/public\_html/www/kirby/bootstrap.php): failed to open stream: No such file or directory in /home/559072.cloudwaysapps.com/zucckrnfsc/public\_html/www/index.php on line 3

After looking back at my source, it appears that the Kirby folder is gitignored by default in Kirby Webpack, though I’m not sure why.

Could anybody familiar with Kirby Webpack shed some light on why that folder might be gitignored, and/or what steps I need to take to get the site live with Cloudways? If it helps, the production version of the site works fine when hosted on a local server (valet park in this case). Here is a link to the repo as well:

> **[GitHub - brandonalexandertong/cameron-ts-webpack-kirby](https://github.com/brandonalexandertong/cameron-ts-webpack-kirby)**
>
> Contribute to brandonalexandertong/cameron-ts-webpack-kirby development by creating an account on GitHub.

Huge thanks in advance!

---

<div class="post-metadata">

**Author:** ![Adspectus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/adspectus/32/189_2.png) [@Adspectus](https://forum.getkirby.com/u/Adspectus)\
**Post date:** [March 5, 2021, 7:15am UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/2 "2021-03-05T07:15:20Z")

</div>

> [@brandonalexandertong](#):
>
> PHP Warning: require(/home/559072.cloudwaysapps.com/zucckrnfsc/public\_html/www/kirby/bootstrap.php): failed to open stream: No such file or directory in /home/559072.cloudwaysapps.com/zucckrnfsc/public\_html/www/index.php on line 3

This error seems more to be related to permissions in general. The webserver seems to be unable to read this directory/file (probably the `kirby` folder in your document root). The necessary permissions and how to achieve them should be documented by your provider. Otherwise, we need more input here to be able to help.

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [March 5, 2021, 8:16am UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/3 "2021-03-05T08:16:22Z")

</div>

Looks like you made some changes in the last couple of hours. Does the problem still persist?

---

<div class="post-metadata">

**Author:** ![brandonalexandertong](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brandonalexandertong/32/9815_2.png) [@brandonalexandertong](https://forum.getkirby.com/u/brandonalexandertong)\
**Post date:** [March 5, 2021, 12:13pm UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/4 "2021-03-05T12:13:49Z")

</div>

So I gave it a shot and un-gitignored the kirby folder in www/ changed the deployment path to public\_html/ and kept the webroot at public\_html/www/ and the site is appearing at the link. Though, the site is running extremely slow, and not loading all of the icons. When I check on Filezilla the entire site has been uploaded (including src folder), though I was under the impression that only the www folder would be needed to host the website.

Going to leave this open for a bit in hopes that someone knows if that’s the case and if those two problems are related!

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [March 5, 2021, 1:05pm UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/5 "2021-03-05T13:05:53Z")

</div>

How exactly do you deploy? SFTP? Then why would you deploy the whole stuff instead of just the public folder?

---

<div class="post-metadata">

**Author:** ![brandonalexandertong](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brandonalexandertong/32/9815_2.png) [@brandonalexandertong](https://forum.getkirby.com/u/brandonalexandertong)\
**Post date:** [March 5, 2021, 1:15pm UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/6 "2021-03-05T13:15:05Z")

</div>

Thanks for your help!

I’m deploying through github with SSH/SFTP on Cloudways, so I have the whole Kirby Webpack with some folders gitignored being pulled to Cloudways, which then hosts the site at [http://phpstack-559072-1799288.cloudwaysapps.com/](http://phpstack-559072-1799288.cloudwaysapps.com/) .

I deployed everything as the site wouldn’t render without the current deployment pathways… I tried different combinations of deployment path and webroot but this was the one that actually brought up the site.

Not sure why though, as I would expect that the deployment path should be public\_html/www/ since that is where everything is kept in Kirby Webpack. Do you have any insight into what the paths should be?

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [March 5, 2021, 1:55pm UTC](https://forum.getkirby.com/t/trouble-deploying-a-site-from-github-using-kirby-webpack-by-brocessing/21467/7 "2021-03-05T13:55:01Z")

</div>

Yes, only the `www` folder needs to be deployed to the server (as stated in the readme of the brocessing starterkit). But if you deploy via git, your complete repository will be cloned to the server (as stated in the Cloudways docs).
