Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Deploying over FTP takes ages

Started by Fubaruba 8 years ago · 3 replies · 630 views
8 years ago

Is it normal that uploading the entire Grav install (8000+ files) takes really really long?
Shouldn't it take just a few minutes?

And do I need to copy over the "cache" folder?

And also, what's the best way to upload new changes made to my local version? It's pretty tedious to keep track of all changed files and then FTP them manually...

8 years ago

For the initial upload it's best to do it as a zip I would say. Transferring lots of tiny files always takes a long time, one big file is larger but much more efficient. I personally use GitSync to manage changes to pages, and I have my theme checked into Git too - though I don't use GitSync for that.

8 years ago

What @RosemaryOrchard says is true, transferring a binary file is much faster than the individual files. Further, once you have installed Grav on your server there is no need to transfer anything other than what is in your /user-folder. In general, you can upload the entire /user-folder without worry, or just specific parts of it if you prefer -- like /user/pages.

When you wish to upgrade Grav itself, manually, you need to upload all files - but that is quicker if you use the Admin-plugin.

👍 1
8 years ago

Download the zip directly onto the server with wget or something if you can. Otherwise, upload it all. For some reason, FTP is very slow with many files.

I don't use the GitSync plugin, but I do have most of the user folder in Git in a remote repository. So when I develop locally, I push to the remote repo (on Bitbucket), then I can pull into the server. This is much quicker, more reliable, and simpler. I could automate more, but that process is fine for me right now :)

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago