Probleme with the deployement of a Sage theme (9.0)

hello there
i tried to deploy my new sage (9) Theme by following an old school ftp way. I read the official documentation in the sage book, but it does not help.

My theme works locally on my computer with flywheel. But when i am sending my work on my production server after the “yarn build:production”, the sage theme makes my whole website broken. A message appeared telling me that the wordpress can’t work properly. And nothing is working anymore even the back-office.
what did i missed to make this deployment fine ?
Where could i find a complete tutorial to deploy my theme on a server with the FTP way ?

thank you for reading.

Did you upload the vendor directory? It’s mandatory to generate and upload it to make it work.
As you are uploading it via FTP do

$ composer update

and upload vendor folder

I remembered I have 1 project set up in the way you should not do it :slight_smile: => upload theme via FTP

however wp-content/themes/tavti have this stuff uploaded
01

and in tavt folder root I have these files

don`t really remember now if I had to set up anything else from WP side

That seems to be a Sage v8 theme, not Sage v9.

Cheers!

Thanks for you help.
I did an upload after “yarn build:production” of the “dist” and the “ressource” folders, and “composer update” before the upload of the “vendor” folder.

It does not work.
Well… i don’t understand how Sage works. I should go back to the old school WO development.

Thanks

I would recommend using a git repo to install your theme. Here are the complete files in my repository:

demyx
├── app
│   ├── Controllers
│   │   ├── App.php
│   │   ├── FrontPage.php
│   │   └── PageStatistics.php
│   ├── active.php
│   ├── admin.php
│   ├── comments.php
│   ├── filters.php
│   ├── helpers.php
│   ├── image.php
│   ├── rest.php
│   ├── servers.php
│   └── setup.php
├── config
│   ├── assets.php
│   ├── theme.php
│   └── view.php
├── dist
│   ├── assets.json
│   ├── images
│   │   ├── demyx-login_7a52e60c.png
│   │   ├── favicon_97c3984d.png
│   │   ├── preview_eccb517b.gif
│   │   ├── ribbon-left_4370fd17.png
│   │   └── topbar-logo_102ae127.png
│   ├── scripts
│   │   ├── customizer_fdaaf4c9.js
│   │   ├── demyx_fdaaf4c9.js
│   │   ├── login_fdaaf4c9.js
│   │   └── main_fdaaf4c9.js
│   └── styles
│       ├── demyx_fdaaf4c9.css
│       ├── login_fdaaf4c9.css
│       └── main_fdaaf4c9.css
├── resources
│   ├── functions.php
│   ├── index.php
│   ├── screenshot.png
│   ├── style.css
│   └── views
│       ├── 404.blade.php
│       ├── archive.blade.php
│       ├── front-page.blade.php
│       ├── index.blade.php
│       ├── layouts
│       │   └── app.blade.php
│       ├── page-blog.blade.php
│       ├── page-statistics.blade.php
│       ├── page.blade.php
│       ├── partials
│       │   ├── blog-meta.blade.php
│       │   ├── blog.blade.php
│       │   ├── comments.blade.php
│       │   ├── content-page.blade.php
│       │   ├── content-search.blade.php
│       │   ├── content-single.blade.php
│       │   ├── content.blade.php
│       │   ├── entry-meta.blade.php
│       │   ├── footer.blade.php
│       │   ├── head.blade.php
│       │   ├── header.blade.php
│       │   ├── page-header.blade.php
│       │   └── sidebar.blade.php
│       ├── search.blade.php
│       ├── single.blade.php
│       └── template-custom.blade.php
└── vendor # Include whatever is in here after composer install --no-dev

I have a really simple theme but the files at the root level are only counting 5. If you include .gitignore, that’s 6.

OK people,
i followed your advice. I don’t really understand everything but i creates a git_depot on my remote server and i installed composer there, too. I uploaded the “/dist” folder and it is working. Except the url image in my “main.css”. But i think it is related to “local/Flywheel” i suppose, and the way it is managing it.

Thank you for your help. Git, in the worklfow, is still a little mysterious. I can see as powerfull it can be, but how to use it ? the sage documentation would be more explicit, i would be a smiler junior developer ! :slight_smile: :slight_smile: :slight_smile:

This topic was automatically closed after 42 days. New replies are no longer allowed.