If you upload the entire build file itself, the process will not work. Open it up and select all the contents inside the build file. Navigate to the build file in your app's root directory. Add the Build File Contents to public_html The one we're interested in is public_html. There you'll find a dropdown list of directories. Your cPanel manager should look something like this: Typically there is a dropdown menu of some kind that says "Manage" which will direct you to cPanel. Once you've logged in, navigate to the cPanel manager for your domain. Let's head over to your hosting provider (Namecheap, Godaddy, Bluehost etc.). The build folder is essentially a super-compressed version of your program that has everything your browser needs to identify and run your app. You'll notice this creates a new directory in your project called build. Once this has finished, the next command you'll run is yarn build ( npm install and npm build work, too). In your application's root directory, run yarn install to install the updated dependencies. Open up your package.json file and add a "homepage" attribute like so: Add the Homepage to your package.json File If not, this tutorial can help you out.ΔΆ. If you buy them together, these providers will typically point the domain to your hosting server automatically. To host a website, you'll need to purchase a registered domain name and a hosting plan from a hosting provider (both provided through numerous sources like Namecheap or Godaddy). While working on a personal project called Punchstarter, a Kickstarter clone app, I struggled to find any good documentation on how to host a custom app on my own domain with cPanel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |