Run updateDB from command line (SSH)?

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
BestMacs
Posts: 8
Joined: 2013-07-12 13:21

Run updateDB from command line (SSH)?

Post by BestMacs » 2015-01-22 23:23

Hi everyone,

I'm pushing new AppGini PHP files to various sites via rsync over SSH, but the MySQL database is not updated with new fields until someone logs in to the websites. I've tried running updateDB.php via SSH (ssh hostname 'php /var/www/updateDB.php') which returns a line of HTML but the MySQL DB is not updated.

Anyone have a quick way to do that?

Thanks!

BestMacs
Posts: 8
Joined: 2013-07-12 13:21

Re: Run updateDB from command line (SSH)?

Post by BestMacs » 2015-01-23 17:42

For posterity: a simple "curl http://site/index.php" got it done.

Post Reply