etienne / wordless_gem

Command line tool to manage Wordless themes. Now maintained by welaika.
https://github.com/welaika/wordless_gem
MIT License
15 stars 3 forks source link

auto setup wp-config.php #7

Open solidstudio opened 12 years ago

solidstudio commented 12 years ago

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?

etienne commented 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.

endorama commented 12 years ago

About the server: newer version of PHP ( 5.4.0 onwards ) include a built in server

Maybe we can simply use it :)

etienne commented 12 years ago

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.

endorama commented 11 years ago

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.