Author Topic: Website development and design troubleshooting/ question  (Read 7551 times)

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #15 on: August 12, 2015, 01:16:28 PM »
Will it also find images that are used on custom pages, or even hardcoded into PHP (I know, I know...)?

I would assume not, since my guess is that it checks the DB for references (I may be wrong though!). Just curious, why do you want to delete all of the unused images? They don't change load time on your website, and I doubt that you have so many images that your server is full, if that's the case, then you need to rethink the way you do images.
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #16 on: August 12, 2015, 01:41:32 PM »
I would assume not, since my guess is that it checks the DB for references (I may be wrong though!). Just curious, why do you want to delete all of the unused images? They don't change load time on your website, and I doubt that you have so many images that your server is full, if that's the case, then you need to rethink the way you do images.
Server is not full (AFAIK). But every time I download/backup wp-content to refresh my dev site, it goes through tons of images, and I doubt they are all used.

Is there a better way to run a dev site?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #17 on: August 12, 2015, 01:44:06 PM »
Server is not full (AFAIK). But every time I download/backup wp-content to refresh my dev site, it goes through tons of images, and I doubt they are all used.

Is there a better way to run a dev site?

You can download everything besides your images folder
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #18 on: August 12, 2015, 02:10:04 PM »
You can download everything besides your images folder
True. It's a little more effort but probably worth it.

I wonder if there's a better way to run a dev site than copying over the files and DB.
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #19 on: August 12, 2015, 02:15:57 PM »
True. It's a little more effort but probably worth it.

I wonder if there's a better way to run a dev site than copying over the files and DB.

Definitely, your website should start locally be fully subversioned and only then uploaded (either directly from the subversion or not), not the other way around.
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #20 on: August 12, 2015, 02:19:31 PM »
Definitely, your website should start locally be fully subversioned and only then uploaded (either directly from the subversion or not), not the other way around.
my dev site is on the server, though. is that a bad idea?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #21 on: August 12, 2015, 02:21:35 PM »
my dev site is on the server, though. is that a bad idea?

One part of the server is for development and one is for production? I don't know if it's a "bad idea" per se, but why would you not have your dev site on your local computer?
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #22 on: August 12, 2015, 02:24:14 PM »
One part of the server is for development and one is for production? I don't know if it's a "bad idea" per se, but why would you not have your dev site on your local computer?
yes
we were playing around a bit trying to speed up the site, and wanted everything else to be the same.

Maybe I should have a local branch for the dev site and one for the real site, and push each one to the server as needed?

Do you use WAMP? MAMP? Something else?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #23 on: August 12, 2015, 02:31:30 PM »
we were playing around a bit trying to speed up the site, and wanted everything else to be the same.
I can only imagine having the website twice on the same server will slow down stuff more than speed it up (except if the server is big enough)

Maybe I should have a local branch for the dev site and one for the real site, and push each one to the server as needed?
I don't understand why you would need two separate branches locally, edit whatever you want locally and then push it to production when you're happy.

Do you use WAMP? MAMP? Something else?
I use wampserver, MAMP is only for Mac (hence the M)
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #24 on: August 12, 2015, 02:34:29 PM »
I can only imagine having the website twice on the same server will slow down stuff more than speed it up (except if the server is big enough)
good point!
I don't understand why you would need two separate branches locally, edit whatever you want locally and then push it to production when you're happy.
one for the stable site, and one for what I'm working on / messing around with? (This might not make sense... I'm kind of new to git and subversioning...)
I use wampserver, MAMP is only for Mac (hence the M)
[/quote]Thanks!
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #25 on: August 12, 2015, 02:38:28 PM »
good point!one for the stable site, and one for what I'm working on / messing around with? (This might not make sense... I'm kind of new to git and subversioning...)
You would create a branch for the messing around part, commit as you go, and then merge it into the master branch and commit the master and push to production. Assuming you're using Git (based on your quoted statement) this should be an interesting read (didn't totally read it through, but it talks about branches and merging)

Thanks!
My pleasure
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #26 on: August 12, 2015, 03:06:57 PM »
You would create a branch for the messing around part, commit as you go, and then merge it into the master branch and commit the master and push to production. Assuming you're using Git (based on your quoted statement) this should be an interesting read (didn't totally read it through, but it talks about branches and merging)
Cool - thanks!!
Workflowy. You won't know what you're missing until you try it.

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #27 on: August 12, 2015, 03:32:27 PM »
When you add a post do you do it on the local site, or on the live one?

What about when you install a plugin?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2014
  • Posts: 950
  • Total likes: 33
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #28 on: August 12, 2015, 03:42:50 PM »
When you add a post do you do it on the local site, or on the live one?

What about when you install a plugin?
Adding a post is only should usually only be done on the live site IMHO (you can easily copy the posts table if needed), I personally don't see the need of having the post on the local version.

When installing a plugin it makes sense to first install it on the local version, so that if it breaks it's only the local site. Then after confirming that all's working well you can install on live and manually copy the settings
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 8467
  • Total likes: 115
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #29 on: August 12, 2015, 05:33:43 PM »
Adding a post is only should usually only be done on the live site IMHO (you can easily copy the posts table if needed), I personally don't see the need of having the post on the local version.

When installing a plugin it makes sense to first install it on the local version, so that if it breaks it's only the local site. Then after confirming that all's working well you can install on live and manually copy the settings
Thanks!
Workflowy. You won't know what you're missing until you try it.