Hi, I have a shared hosting account with limited options for installing stuff. I have installed composer and now I want to move over my Sage theme. Can that be done via ssh?
I’m thinking of just copying everything and then run composer install.
In most cases (excluding primarily WPEngine)– it is usually as simple as uploading the theme with SFTP including the vendor folder. If Composer is available on your host, uploading your theme without vendor and running composer install
should do the trick.
Hey @Alexls,
Yep, building on what @Log1x said, the core requirements are
- Your theme files (the ones you keep under version control that aren’t compiled or installed)
- Your
vendor
folder, which includes your composer dependencies (uploaded or installed on the server withcomposer install --no-dev
) - Your
dist
folder, which includes your built front-end assets (uploaded or compiled on the server withyarn build:production
)
I’d generally recommend having a system to automate this for you rather than performing it manually each time. Here’s one example using DeployBot: https://roots.io/guides/atomic-deployment-with-sage-9-and-deploybot/. Any number of similar services should work, and many have free tiers (including DeployBot).
Thank you both!
I copied the theme files with scp, then ran composer install --no-dev
and it worked on the first try.
This topic was automatically closed after 42 days. New replies are no longer allowed.