Skip to content

digitoimistodude/dude-load-media-from-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load images from remote for Dudestack

A WordPress plugin that tries to load images from remote url if file is not present in local environment.

Clean up the media

Set up media load from production

It's nice to have images if you need to debug or develop the site further, without having to copy all images to your computer or sync them with Syncthing.

Add dude-load-media-from-remote to repositories section in your composer.json:

{
  "type": "vcs",
  "url": "https://github.com/digitoimistodude/dude-load-media-from-remote"
}

Then add to require-dev in your composer.json:

"digitoimistodude/dude-load-media-from-remote": "dev-main"

Then modify .env file and add:

REMOTE_MEDIA_URL=https://production.fi

Run:

composer update

Then run:

wp plugin activate dude-load-media-from-remote

Disclaimer

This plugin is made to use with dudestack and air-helper, but it might work without it too, since it only alters the url. Notice that the url structure and image sizes must be exactly the same in the remote env.

About

Try to load images from remote if not present in local env

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages