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

Ability to deploy and build site assets through a hosting provider #38

Open
aschmelyun opened this issue Apr 14, 2021 · 2 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@aschmelyun
Copy link
Owner

E.g. Netlify or Vercel. Additionally, include documentation or a link on the README to enable users to deploy their own site directly from this repo.

@aschmelyun aschmelyun added the documentation Improvements or additions to documentation label Apr 14, 2021
@adrelliott
Copy link

I noticed that my deployment failed on Netlify because there was no dist folder in the source code.

I solved this by creating a .gitignore file in the dist directory with some specific exclusions (thanks clever StackOverflow person for explaining how to do this), and removing this line from the .gitignore in the root directory:

/dist

That way, it uploaded an empty dist directory and Netlify could now deploy/build into to that dir.

Now, I'm a newbie, so it's very possible that I either misunderstood something in the docs, or there is a better way to do this.

But if it is a possible issue that others (like me) might run into, I thought it might be worth amending the docs. I'd send a PR, but there may well be a better way of doing this than above!

@adrelliott
Copy link

This is the .gitignore file I created in the local dist directory:

https://gist.github.com/adrelliott/5357698f1477cfbe4dacff631c808390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants