Open solidstudio opened 12 years ago
Thanks for your feedback. It's a great idea and definitely something I'd like to implement. I haven't found the way to do it yet, though. I suppose the user would have to store database configuration in a config file somewhere, and the wordless executable would use that to create the database and properly setup wp-config.php. I think it could work, but it means database credentials would be stored in a config file somewhere, which is probably not a great idea.
As for starting a server, that's a whole other issue. I'd love to be able to implement that, but I don't know how to do that. I'd love to hear some ideas about how to implement that.
About the server: newer version of PHP ( 5.4.0 onwards ) include a built in server
Maybe we can simply use it :)
Interesting, I like the idea. I can see some problems with running WordPress on the built-in PHP server; for instance, it probably doesn't support Apache-style htaccess configuration files which WordPress relies on. I'll look into it and see what's possible.
Quite old, but now I've structured my approach for new Wordpress setup:
Using newvhosts.sh I create folder and database for my new work. Then using wp-cli I download wordpress and wordless, setup the wp-config and install it. At last I enable wordless plugin using, again, wp cli.
Would it be possible to auto generate a wp-config.php? How are people handling database setup and server? would it be possible to make this more like rails, when you create a new wordless project it creates a database and a starts a server for you to view your site?