Jump to content

Module Server Assert


clsource
 Share

Recommended Posts

17 hours ago, szabesz said:

Thanks! One question though: how to use it before running ProcessWire? If it is a module, I have to install ProcessWire in the first place. Am I missing something?

Yes. May be I will do a merge request to wireshell for including this functionality as a command line app.

The use case is when you do an installation of a previously configured site. So maybe the server could run ProcessWire, 
but some modules may be not present (like gd) and you discover that later in the development of the site.

  • Like 2
Link to comment
Share on other sites

4 hours ago, clsource said:

wireshell

+1 :) Although it means that PW must also be present in order to be able to bootstrap it, but at least being installed is not a requirement anymore, if I'm not mistaken.

Edited by szabesz
typo
Link to comment
Share on other sites

11 hours ago, szabesz said:

+1 :) Although it means that PW must also be present in order to be able to bootstrap it, but at least being installed is not a requirement anymore, if I'm not mistaken.

Ok well.

I separated the assertions in their own class. And created a simple file for using the command line

https://github.com/NinjasCL/ProcessServerAssert/blob/master/Assert.php

just use

php Assert.php

in your server (or execute that file in the browser) and you can know if ProcessWire can run in the server :)

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...