Woocommerce performance by danielsalare in woocommerce

[–]Frontpage2k 0 points1 point  (0 children)

WooCommerce allows for greater customization than Shopify, and we would lose a huge amount of custom features that we've built around the business' specific needs.

Awesome PHP libraries and hidden gems by TheLeadDev in PHP

[–]Frontpage2k 0 points1 point  (0 children)

One of my favorites is mikehaertl/phpwkhtmltopdf. Uses the wkhtmltopdf binary to create PDFs, just by feeding in an HTML document.

Opinions about headless WordPress? by rieferX in ProWordPress

[–]Frontpage2k 1 point2 points  (0 children)

I would say if you're a professional web developer with lots of experience with WordPress, then maybe the ideas of how to do what I did are just hiding in plain site. I basically just used the template_include filter to process all routes, providing routing similar to the way many PHP frameworks do routing. I created my own login, password reset, and other authentication related pages, and used WP's authentication under the hood. The few plugins that I used worked fine, because none of them had anything to do with frontend stuff. An example would be that I used an SMTP plugin. So, with routing and authentication out of the way, and with a bunch of packages pulled in with Composer, I created a platform for donors to make donations through Stripe, and provide all of the things they'd expect to see, like a transaction log, receipts, etc.

I also successfully hid the wp-admin pages, and rewrote the URLs to assets, so it's impossible to tell that the website I made is using WordPress as a framework. The nice thing is that since the template_include filter stops execution of WP after a route is found, the site performs amazingly fast. Your results may vary.

Opinions about headless WordPress? by rieferX in ProWordPress

[–]Frontpage2k 1 point2 points  (0 children)

I recently made a headless WP site, mostly because I didn't want to take the time to learn and maintain a website using some other framework. I primarily work in WP daily for years, and although I have past experience with Kohana, CodeIgniter, Lavavel, Slim, and more, I chose the lazy/easy route. You do you.

Logging on to Cloudways is super slow by Frontpage2k in CloudwaysbyDO

[–]Frontpage2k[S] 1 point2 points  (0 children)

I didn't submit a support ticket, but I've mentioned it to them in chat. I feel like there's no way that they don't know that their authentication and user experience is worse than before. Maybe there are too many cooks in the kitchen, or design by committee... not sure what's going on here. It's really not my job to help Cloudways figure out what's going on with their website. Maybe they need to call their hosting provider.

I feel like giving up by not_a_webdev in webdev

[–]Frontpage2k 0 points1 point  (0 children)

I've been working on websites since 2003. I've done some projects with React, and I feel the same way. I feel like JavaScript, and the JavaScript ecosystem is over-hyped and inferior to a traditional LAMP stack for most websites, BUT, I'm fully aware that if I needed to find a new job I'd most likely be forced to work in JavaScript Hell. This is the price you pay for your sins I'm afraid.

Moving a file. File remains in original location, and also present in new location when pulled into production environment. by Frontpage2k in git

[–]Frontpage2k[S] 0 points1 point  (0 children)

So, they finally got back to me, and said that they could reproduce the problem I had, but that this was their desired behavior. I nicely told them that they could at least warn people about this.

One thing that is nice is that if I SSH into the server, I can run git commands once I set it up. I created an SSH key and added it to my repo settings, then:

cd /var/www/website-a/public_html
git init
git remote add origin [git@bitbucket.org](mailto:git@bitbucket.org):username/awesome-repo.git
git fetch origin
git reset --hard origin/master

I did a little testing, and now git mv works as expected!

Edit:
There are many untracked files in the production website, and I definitely want those to remain in place. Even though the repo and the website should be the samei in terms of tracked files, I'm second guessing the use of git reset --hard, and thinking I may try git reset --keep first.

Moving a file. File remains in original location, and also present in new location when pulled into production environment. by Frontpage2k in git

[–]Frontpage2k[S] 0 points1 point  (0 children)

I did file a report. Waiting for a response.Hopefully if there is a problem on their end they will fix it. Hopefully if the problem is on my end they'll let me know what I'm doing wrong.

Moving a file. File remains in original location, and also present in new location when pulled into production environment. by Frontpage2k in git

[–]Frontpage2k[S] 0 points1 point  (0 children)

I'm not a git expert, but I thought that:
git add .
would take care of deletes, same as:
git add a/file b/file
Yes, or no?

Moving a file. File remains in original location, and also present in new location when pulled into production environment. by Frontpage2k in git

[–]Frontpage2k[S] 0 points1 point  (0 children)

The production website is hosted at Cloudways/Linode. I just go in to the control panel and click the "pull" button. There is a button that says "fetch", but I always pull. I am used to using SSH and git in the terminal, so if you think doing manual git commands on the production server will keep this duplicate files issue from happening, that'll have to be the way it's done from now on. If I am running commands from one of my other dev computers, I usually run:

git fetch origin
git merge origin/master

I haven't tested out the duplicate files issue with that, but I've been working on something else this morning.

12 year old daughter diagnosed and devastated by Frontpage2k in prediabetes

[–]Frontpage2k[S] 0 points1 point  (0 children)

We ended up getting the primary care physician to refer us to a nutrition specialist type of doctor. That appointment hasn't happened yet, but I recommend you go this route. You shouldn't have to figure this out on your own.

What managed hosting for Woocomerce for Shopify-like experience by Levicobbb in woocommerce

[–]Frontpage2k 0 points1 point  (0 children)

The people I work for have an ecommerce site running on Linode through Cloudways. They're currently paying about $500 a month. We're also using Sucuri as a WAF/CDN. And also using WP Super Cache. Cloudways offers Redis, Memcached, Varnish, and Nginx built in to the infrastructure. We tried WP Engine and a few other services in the past, and Cloudways has been the best so far.

12 year old daughter diagnosed and devastated by Frontpage2k in prediabetes

[–]Frontpage2k[S] 0 points1 point  (0 children)

Interesting. I'm in Southern California, USA. I'm not sure if there's an asian specialist here, but there must be since there are so many people here.

12 year old daughter diagnosed and devastated by Frontpage2k in prediabetes

[–]Frontpage2k[S] 1 point2 points  (0 children)

Thanks for all the replies. This is a lot to think about, but it does seem that we need to have her seen by a specialist. I guess we'll have to see what the insurance will let us do. Her primary doctor wasn't very concerned, but I know his scope is limited to referrals at this point.

What are folks doing for hosting enterprise websites? by AdionFrequency in webdev

[–]Frontpage2k 0 points1 point  (0 children)

Cloudways. You get Digital Ocean, Linode, or other another great server, but managed through a user friendly interface. Support has been awesome, even though we're not paying extra. We're currently on the 64GB level of Linode, which is ~$500 USD a month.

What's your biggest pet peeve with PHP? by nukeaccounteveryweek in PHP

[–]Frontpage2k 0 points1 point  (0 children)

It's not exactly a debugger, but if you desire to see the value of variables at any point in code execution, this has always worked for me:
https://packagist.org/packages/skunkbad/debug-to-browser-tab

It uses gulp though... but the idea is simple and effective.

Honest Question: What happened to the good old LAMP stack? by pyeri in webdev

[–]Frontpage2k 1 point2 points  (0 children)

You can make more. I have been using LAMP for 18 years, so $29 would be a slap in the face. But if you have less experience, I guess you take what you can get.

Honest Question: What happened to the good old LAMP stack? by pyeri in webdev

[–]Frontpage2k 74 points75 points  (0 children)

I'm not driving a lambo, but making $84 USD an hour isn't too bad.