[wp-trac] [WordPress Trac] #22802: Empower Plugin Developers to make Symlink Compatible Plugins
WordPress Trac
noreply at wordpress.org
Fri Jan 4 21:55:38 UTC 2013
#22802: Empower Plugin Developers to make Symlink Compatible Plugins
------------------------------------------------+--------------------------
Reporter: MikeSchinkel | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting
Component: Plugins | Review
Severity: normal | Version: 3.4.2
Keywords: has-patch dev-feedback 2nd-opinion | Resolution:
------------------------------------------------+--------------------------
Comment (by markjaquith):
Replying to [comment:24 kchrist]:
> Replying to [comment:20 nacin]:
>
> > 3. Avoid symlinks, and use VCS tools to check out the same code into
multiple places (git submodules, svn externals, checkouts, etc)
>
> I just want to note here that while this could work in some situations
where people are symlinking either individual plugins or the entire
plugins directory, it doesn't address the issue where plugins break when
deployed via Capistrano (as noted in comment:ticket:16953:31). Any
situation where the entire document root is symlinked is affected by this
same problem.
All of my sites are deployed with Capistrano, and I have no problems with
this. The only way you'd have an issue is if some stupid plugin is storing
a full system path somewhere in the database (or in a config file it
writes to disk). The issue MikeSchinkel is talking about comes into play
because the plugin path doesn't contain ABSPATH. But with a Capistrano
deployment, it is the docroot that is symlinked. So while ABSPATH changes
on every deploy, that doesn't matter, because nothing in WordPress
hardcodes full system paths. Happy to chat with you about this privately,
as Capistrano and WordPress deployment systems are one of my specialties
(see [https://github.com/markjaquith/WP-Stack WP Stack] ). Same username
on Skype.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22802#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list