gatsby-simplefolio icon indicating copy to clipboard operation
gatsby-simplefolio copied to clipboard

Not working after build

Open lsrom opened this issue 5 years ago • 6 comments

Full disclaimer, I am not web developer and don't know how Gatsby works but I expected it to work if I follow the README.

While in gastby develop everything works great, after build, the page (public/index.html) showed up with default values, no projects and so on. I fixed this by changing imports in components from import PortfolioContext from '../../context/context' to import { aboutData } from '../../mock/data';

This fixes the data missing but there are still blurred images, which is some optimization which is not working I guess and animations are not working. After uploading public directory to web hosting provider just to test it, it shows blank page.

I got all latest stable versions of nvm and gatsby and their example projects work fine.

lsrom avatar Feb 29 '20 16:02 lsrom

Hello @lsrom

Very interesting question, at least for me. I'm not sure why that is happening because it should work with the public folder and all the static files inside it. I tested and yes, I'm having the same error.

I really don't know how to deploy a Gatsby site just by grabbing the public/ to whatever host provider using FTP or something. Just know how to do it using continuous deployment or cloud services for static sites.

The only thing I found related to this is: https://github.com/gatsbyjs/gatsby/issues/3865

cobiwave avatar Mar 03 '20 22:03 cobiwave

Hi, thanks for your reply!

After I changed the imports and did some gatsby clean/build it finally worked, even the images are fixed and it all works on static hosting. I'm not sure what I did wrong that the PortfolioContext wasn't loading for me and I don't know enough about web development to really investigate so if you consider implementing such change is up to you.

As of right now it is working for me (with PortfolioContext replaced) and I hope it stays that way. The only real issue was the PortfolioContext, the rest was probably somehow my fault.

lsrom avatar Mar 03 '20 22:03 lsrom

I'm having a similar issue trying to use aws s3 buckets. Very new to web development, using this as a personal website for an academic setting. Question for @lsrom: Can you provide any examples of the edits you made? I was able to follow what you said about changing all the imports to avoid PortfolioContext or calling Context at all (I read some more instances where this wasn't working with static builds), but I still can't figure out how to make the images not blurry. What do you mean when you say you "changed the imports"? Thanks for the hints already, and thanks @cobidev for the great template!

kylebrill avatar Dec 23 '20 06:12 kylebrill

Not yet. Haven't had time to get back to it.

On Wed, Jan 13, 2021 at 9:03 AM Mitra Mirshafiee [email protected] wrote:

Hi @kylebrill https://github.com/kylebrill, could you fix the issues? unfortunately, I'm not able to see the website live after deploying with netlify.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cobidev/gatsby-simplefolio/issues/2#issuecomment-759506408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACN7PCICHMOH4R4SH4ZCYZTSZWY33ANCNFSM4K62DW2Q .

kylebrill avatar Feb 02 '21 16:02 kylebrill

Can any one include deploy process from GitHub? I tried to deploy it on Netlify by github repo . But it didn't work

sakil470004 avatar Sep 20 '21 06:09 sakil470004

Can any one include deploy process from GitHub? I tried to deploy it on Netlify by github repo . But it didn't work I went to this repository from this tutorial. It includes the step deploying to Netlify https://youtu.be/UdCJjcRA5Ow?t=582

mymys91 avatar Jan 24 '22 23:01 mymys91