mkSage
May 15, 2018, 1:52pm
16
Thank you for your help.
Breaking down the responsibilities helps. Anyway, I followed your directions, I was able to create my vagrant local environment but there are no errors.
I vagrant sshed into my system.
In /srv/www/mysite/current/vendor/advanced-custom-fields/advanced-custom-fields-pro :
is
acf.php assets includes lang pro readme.txt
The only plugin in my “plugin” folder is All-In-one migration. Thoughts?
There’s no need to vagrant ssh
to your system for any part of plugin management if you have Composer installed locally.
Just change directories to your site
directory and type composer update
.
Do that and paste the output your get here.
mkSage
May 15, 2018, 1:59pm
18
I have one thought, I did receive this error:
The plugin advanced-custom-fields/acf.php has been deactivated due to an error: Plugin file does not exist.
Could the problem be the acf.php file is in the advanced-custom-fields-pro folder and not one step up?
No. Composer will put the plugin into your site/web/app/plugins
directory --it doesn’t use the vendor
directory.
mkSage
May 15, 2018, 2:01pm
20
Is there way to test installer errors?
Can you post the full output of running composer update
in the site
directory?
mkSage
May 15, 2018, 2:19pm
22
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
I’m actually running out of ideas here. Could you try running rm -rf vendor
from site
and then run composer update
again?
1 Like
… and before composer update
running composer clear-cache
might help too.
1 Like
mkSage
May 15, 2018, 2:47pm
25
Should I push after running composer update?
I’m not sure I understand the question. Push what to where?
EDIT:
Re-reading this I think you mean pushing to production. I recommend resolving this issue locally before trying to make it work in production.
1 Like
mkSage
May 15, 2018, 4:05pm
27
Sorry, I meant put to repo.
This worked locally. I forgot to push to repo and it didn’t install on the server. I’m hoping if I go back, push to repo, then reprovision server, it will work. I’m at my dayjob, so I’ll try it tonight, but thank you @MWDelaney and @knowler , I wish I could buy you both a beer, you guys are lifesavers.
1 Like
mkSage
May 17, 2018, 5:32pm
28
So I did a clean install,
Did what you said and it worked locally.
I tried to push up to my remote server. Didn’t work,
Hi everyone,
I have been building a new site with Trellis. A couple months ago I set up a staging server which I have been frequently deploying to using the deploy.sh script provided by Trellis. Things have gone smoothly up until now.
I have added plugins to my project without issue in the past but yesterday I added a new plugin (specifically Single Category Permalinks ) to my composer.json file.
I ran composer update && composer install locally (thus modifying my composer.lock file) and redep…
I tried to follow this, not sure if it worked. I think the issue I’m having is the build-before.yml file.
I’m assuming if I create a build-after file and move it to that, it should work?
https://discourse.roots.io/t/build-before-hooks-and-including-my-theme-via-composer/9843/9
Right now I can get Vangrant up to work, I can run:
ansible-playbook server.yml -e env=production
but when I try to:
./bin/deploy.sh production mysite
Nothing is there. (No nginx error).
mkSage
May 17, 2018, 9:16pm
29
It turns out there wasn’t any node_modules in my production theme. Do you guys have any idea why that might be? I’m thinking yarn isn’t running.
@knowler
@MWDelaney
Why would your production theme have node_modules
? Sage packages up all the JS you need as part of the build process.
mkSage
May 17, 2018, 9:26pm
31
I didn’t know that.
Should I be able to run yarn in my production theme? If it try it, it says :
ERROR: There are no scenarios; must have at least one.
AFAIK you should’t be running yarn on your production server. All of your asset processing/compliation happens locally, when you deploy: The deploy process just pushes all your assets from your local machine to the remote one.
ben
May 17, 2018, 10:28pm
33
@mkSage Please don’t chain separate issues together in the same topic
1 Like