headless-wp-starter icon indicating copy to clipboard operation
headless-wp-starter copied to clipboard

Documentation on how to deploy this to production (digital ocean)?

Open ghost opened this issue 6 years ago • 4 comments

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?

ghost avatar Feb 12 '19 03:02 ghost

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.

cr101 avatar Feb 12 '19 06:02 cr101

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.

chwzr avatar Feb 26 '19 18:02 chwzr

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.

scottdevito avatar Mar 02 '19 19:03 scottdevito

This article helped me: https://willandskill.se/en/setup-a-next-js-project-with-pm2-nginx-and-yarn-on-ubuntu-18-04/

webface avatar Dec 14 '19 14:12 webface