Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
504 stars 204 forks source link

PHP was better than NodeJS #28

Closed doughnet closed 7 years ago

doughnet commented 7 years ago

Can't even get this to install on a fresh Debian 8 installation.

root@postleaf:/var/www/postleaf# node app.js Error: Postleaf failed to start! ð SequelizeUniqueConstraintError: Validation error

Maybe work on better installation guides? The PHP version of PostLeaf was easy to install ... so far pretty disappointed in how the NodeJS version is thus far.

juan-manuel-alberro commented 7 years ago

Try running gulp build twice, that fixed the problem un my local environment. If that didn't worked download the latest version from alpha.

doughnet commented 7 years ago

running it twice did work ... guess thats good; but still way worse and less of a chance i will ever use postleaf in production with the complexity/inconvenience of NodeJS/NPM.

claviska commented 7 years ago

The alpha is intended for developers to work out bugs and improve the build/dist process. By their nature, Node apps are more difficult to install than PHP apps.

We're all learning here, so let's keep a positive tone and work through these early issues. 🙂

Although dev will probably remain the same, I haven't determined what the officially supported process for production will look like. One approach we're experimenting with is with Docker. It's still early, but I encourage anyone with container experience to help us improve it:

https://github.com/lukewatts/postleaf-docker

I'm not saying definitively that we're going to use Docker, but it looks like a promising approach that reduces these types of issues. I'm very much open to suggestions.

Ultimately, the goal is to find a solution that makes it easy and reliable to install Postleaf on a variety of platforms so anyone who wants to DIY can do so.

lukewatts commented 7 years ago

@doughnet @claviska I've also just finsihed an Ansible playbook which is very straightforward to install and run on Debian/Ubuntu. No prior Ansible knowledge required.

https://github.com/lukewatts/postleaf-playbook

doughnet commented 7 years ago

Nice. But by doing a product in docker or ansible will eliminate anyone using shared hosting. I feel that is a bad idea; because users that want something "easy" are also the ones that use shared hosting environments.

lukewatts commented 7 years ago

@doughnet I don't know of any shared hosts that run NodeJS apps.

I don't think every CMS needs to cater to the lowest common denominator. Nor should they. There are plenty of CMS options already out there that run on shared hosting.

Anyways, this isn't a forum so I'm going to leave it there. However, if you want to give Postleaf another go you can try the Docker container or the Ansible playbook. If you have issues or questions about those please let me know.