How to transfer an existing website to Google App Engine? - wordpress

How can we go about transferring an existing wordpress website, with lots of images in wp-content/uploads folder.
I have been able to run a fresh wordpress install on GAE following this
https://developers.google.com/appengine/articles/wordpress
The part where I am stuck is how to transfer an existing website?

I don't think you will find a drag-and-drop way to transfer your current WordPress installation to AppEngine, at least not without a good deal of effort:
First, you need to manually create a migration/mapping from your current data store to an instance of CloudSQL.
Second, you need to (somehow) remap all the static files/images to either Blobstore or Google Cloud Storage as there are limits to the amount of static files you can upload to an App Engine app.
Third make sure all your existing plugins URL rules can be matched with AppEngine's routing mechanism.

Related

If a website is constantly changing, can it be implemented with next.js?

I hope you are doing well
I want to make a book site with next.js. My site needs to be updated and add products every day. I want to know now if it is appropriate to make this site with next.js?
Now, my website is complete and I ran it with next.js, my website is with node.js, and now every product that I add, I have to go and get a build from the next.js project and upload it to the host, and is this a difficult job? If anyone has a better way, I would be grateful if they could help
Look at this Showcase on next.js official website. It's powerful enough to make any kind of dynamic website. You need to use getServerSideProps with the database of your choice. If you are using Static HTML Export you have to rebuild and upload it again whenever you make any changes.
There's also a lot of options to automate next.js deployment, Best option for your use case is to use services like Digital Ocean App Platform so whenever you push some changes to git repo it automatically rebuild and update your site with fresh content.

How to integrate wordpress as CMS for external website?

I have a site where i need to control the content by external site like, Wordpress or Joomla or drupal. HOw can i do it? Any suggestions are very much appreciated. If i edit it here, changes needs to be reflected in my external site..
I think, you should link the database of your CMS set up (e.g. your WordPress site) with your external site. Whenever you will do edit there, the changes will be reflected on the external site. But, first of all you should have written code in the external site to fetch data from your CMS database.
Obviously, just after linking to the CMS database, the required data will not be fetched and shown on your site. You will have to refer tables structure of the database and accordingly write queries and present it on your external site in the way you want.
Also, for instance your CMS is WordPress and external site is coded in PHP,
You'll need to use core PHP functions and DB queries as WordPress API functions won't work on your external site.

How to upload/update Wordpress themes on Google App Engine without FTP?

I realised that, according to the Google Cloud documentation, unfortunately running wordpress on google app engines does provide any core FTP services!!
Thus if I want to update any new Wordpress themes/plugins onto my Google App Engine each time I add/remove new code, how am I supposed to update them on Google App Engine if there's no FTP service available?!
Also would the gsutil update function work? Will it behave the same thing as I would do upload/download wordpress themes/plugin as I do use the WP Admin screen.
My only concern for the above approach is that I have my local wordpress that's pointed to this URL localhost thus I might worry that when I upload my local copy, this will overwrite the site url of my google app engine account!! Is that case? I need some confirmation!
There's no FTP, the way you upload changes to App Engine is through the appcfg.py utility (or using the graphical launcher tool). This will update all the code in your application, including any plugins or themes you may have installed.
However it will not update the database, which usually means that content and settings that you have running will not change. Just the themes and modules.
Finally, App Engine has a neat feature called Versions, which allows you to run multiple copies of your Wordpress code simultaneously (they share the same database) under different URLs. Each version gets a URL like v2.myblog.appspot.com So if you update your code, do it to a seperate version, check that it works, then if you are happy with it, make it the default version. You can read more here:
https://gae-php-tips.appspot.com/2013/06/25/harnessing-the-power-of-versions-on-app-engine/
First there is no FTP service in AppEngine.
1-You can use CloudStrage for upload by default plugin that is Google Cloud Storage plugin.
2-Enter the GCS bucket name [YOUR_PROJECT_ID] .appspot.com that you changed to ACL
2.5- Before 2, Change principal to Allusers default bucket [YOUR_PROJECT_ID] .appspot.com
3- If your region is correct that is CloudSQL, GCStrage,
Place your theme under projects> wordperss > theme and deploy it.
You can use your theme in App Engine

Why does Wordpress have such an awkward media migration experience?

I've had to migrate many Wordpress web sites from different domains on the same server to different domains on different servers. In few cases, a simple export was sufficient. In many cases, an import failed to load the media correctly and I was forced to use a common work around.
Workaround (for those wondering):
I download from the original site and upload to the new site the uploads folder where my media is stored via FTP. Once this transfer is complete, I use the plugin Add From Server to select each individual image, one directory at a time.
This is the best workaround I've found, but it's hardly efficient. It's incredibly time consuming and stressful on your bandwidth.
If you have any better suggestions, I'm all ears. But primarily, I want to know the "Why" to this question. What causes Wordpress to have such a hard time managing media migration while migrating posts, pages, and users are much less of a headache?
There is an excellent tool that certainly eases Wordpress migration WordPress (and others) Search and Replace Tool. With that tool it's easy to search through the entire database for all occurrences of old domain, and replace that with the name of new domain. After replacement all the pictures and widgets should work properly.
The way I'm moving WordPress:
export and import the database with phpMyAdmin
transfer the files with FTP program like FileZilla
edit the wp-config.php settings for a new domain
search and replace on the database with InterconnectIT Search and
Replace Tool

wordpress, a download manager for outside URLs

I'm working on a online file library for one of my clients. It's a library for mostly PDFs and office documents. Because they are a huge amount(almost 2gb in files), I'm hosting them on another site(divshare), so that the hosting account we have doesn't get blocked by the excess of files, and also because of excess traffic downloading can generate.
So, my question is if there is a good download manager(even with some search for download categories and so) that can handle instead of local uploaded files, URLs of files hosted somewhere else?
The advice about any plugin or the like is very appreciated.
You ask how to code such manager, right? Otherwise, your are on the wrong site...
I think you need to make a kind of file manager, except that instead of generating HTML pages to view the files and act on them, it exposes a Web API, returning XML or Json data, that a WordPress plugin can manage.
From Divshare:
The DivShare Uploader Plugin for Wordpress replaces your regular
uploading frame with a DivShare upload form, allowing you to easily
upload and add files without ever leaving your "Write a Post" page.
It's a great way to speed up your blogging and take the load off your
servers when hosting big files and images.
It can be found here: http://www.divshare.com/integrate
Good Luck!
Marcelous

Resources