headless-wp-starter
headless-wp-starter copied to clipboard
Documentation on how to deploy this to production (digital ocean)?
Are there any documentation on how to deploy this to production? right now if you look at the source code, bunch of codes __NEXT_DATA__ I want to see if these codes are gone in production.
has anyone deployed the front-end to digital ocean?
I'd also like to know if both the front-end and the WordPress backend can be deployed to one single hosting environment? Seperate hosting environments for each would be time consuming and expensive.
i'm currently trying to deploy mine to a ubuntu server. I'm struggling with the wordpress install. it always redirects me to localhost when i want to login. I changed the robophar.php file to match my domain. cannot find the occurence of localhost in any file.. but its allways redirecting me to localhost:8080... the frontend is working fine, I'm using it behind a nginx proxy on the same server.
If this helps anyone, I was able to deploy the frontend docker image to AWS (EC2 linux instance managed by ECS) with this article: https://medium.freecodecamp.org/how-to-deploy-a-node-js-application-to-amazon-web-services-using-docker-81c2a2d7225b?gi=a6397dd07eb0
There have been slight menu option changes to AWS since the article was written but it still holds up overall.
This article helped me: https://willandskill.se/en/setup-a-next-js-project-with-pm2-nginx-and-yarn-on-ubuntu-18-04/