• Resolved tinger005

    (@tinger005)


    step to deploy react on wordpress
    [1] go to cd /home/penprapa/public_html/thairin/wp-content/reactpress/apps
    [2] git clone my react-app name thairin-fe
    [3] refresh live site its show react project and add url-slug => thairin-fe
    [4] press button deploy
    [5] try to open https://www.thairinofficial.com/thairin-fe/ is show blank page

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author rockiger

    (@rockiger)

    Please stick to the documentation:

    1. Install ReactPress on your local WordPress installation.
    2. In your command line use npx create-react-app [your-app-name] in the apps directory of ReactPress, e.g. [path-to-WordPress]/wp-content/reactpress/apps/my-app
    3. Reload the ReactPress admin page and add a URL Slug for your app.
    4. In the command line start the React app with npm start or yarn start.
    5. Develop your app, changes will automatically hot reloaded.
    6. When you are finished, build the app from the command line. You can now see your app embedded in your WordPress instance. Open it at [your-domain]/[your-slug].
    7. To deploy, Install ReactPress on live WordPress site.
    8. Upload the build folder from your dev system under .../wp-content/reactpress/apps/[your-app-name] to the same directory onto your live server. No need for create-react-app.
    9. Reload the ReactPress admin page and add a URL Slug for your app.
    10. Open the React app under [your-domain]/[your-slug].

    All steps are mandatory and there shouldn’t be any deploy button.

Viewing 1 replies (of 1 total)
  • The topic ‘after deploy react-press is show blank page’ is closed to new replies.