Closed jeremydouglas closed 9 years ago
Hey @jeremydouglas
It sounds like you have a newer version of PHP on your command line. I'll need to address these issues for newer versions, but in the meantime, there's a couple of things you can do.
In your php.ini file, change the error reporting to not show strict warnings. Find the error_reporting directive and change it to be:
error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE
This will change it for all PHP using that config file though. The other option would be to turn off error_reporting in stag. Go to /stag/autoload_stag.php
and add this to the top of the file.
error_reporting(0);
That should do it.
On a side note, you'll need the pull_content block of your config nested under your server config. Like so:
servers:
production: production
host: {my site url is here}
webroot: /home/{dir_name}/public
user: forge
port: 22
forward_agent: false
strategy: rsync
pull_content:
commit_message: "Content update from production"
content_directories:
- _content
- assets
- _forms
Hope that helps!
Thanks it does!
I'm trying out stag, using MAMP 3.
I have this config file:
When I run any command, I receive php errors, but the command does eventually run. Is there any way to get this to run without showing the errors?
This is what outputs: