Most of the push notification services required to upload two files at the "/" (root) of the server . So that the following files can be accessed via the following urls
1. https://example.com/menifest.json
2. https://example.com/worker.js
Can any one help me regarding how to serve this files at the above urls in a ghost powered blog?
You can use the following Zapier integration for the push notifications
https://zapier.com/apps/ghost/integrations/onesignal
This guide will help you on integrating the integration above.
https://ghost.org/integrations/zapier/
Ghost blog also supports webhooks in case you would like to create a push notification service from scratch without any integration.
https://ghost.org/docs/webhooks/
You can drop the files in your theme root and that will simply work.
Sign in to your admin dashboard.
Go to Settings -> Design and download your active theme.
Extract the theme files and copy the files that has to served from the root of your blog to the root folder of your theme.
Zip the theme.
Click Upload a theme button in your Ghost admin dashboard and upload the theme again. Don't forget to activate the theme.
Related
I have to transfer my Local host edited WordPress theme to Azure WordPress.
I have edited a WordPress theme on my Local Xampp Server. After that, I got to know that to transfer my theme, I need to install a WordPress plug-in called Duplicator. I have installed and downloaded the generated files. Now, I want to transfer that theme to my newly made Azure Account WordPress
but I'm unable to do so and there is no descriptive video or post that I can find.
I can not find Azure WordPress root directory.
How to Move Your WordPress Site to Microsoft Azure: Step by Step Guide
Backup your WordPress Site with cPanel
Choose the “Full Backup” option which will include all your files and databases
Backup your WordPress Site with a Plugin
Install and activate the plugin and you will see a new menu item under “Tools” named “Backups”,click the “Settings” link and choose the “Database and Files” option.
Export Your Site Content
“Tools” > “Export” and choose “All Content” and download the Export file.
Move WordPress Content to Azure
Now you have your site backup, the content you will need to set the site up on Azure is as follows :
The /wp-content folder – This contains any uploaded images and files, your plugins and your themes
The Export file – This contains all your blog posts, comments, pages and any other content.
Upload Content Via FTP
Login to Azure portal and choose your website from the “Websites” link on the left-hand side, click your site name and the “Dashboard” and you will see a link on the bottom right named “Setup Deployment Credentials”
Enter a username and password in the popup box and these will be your FTP login credentials
Import Content- Download and import file attachment
To import your content, in the new Azure installation visit “Tools” > “Import” and select the WordPress importer from the list
Setting the Permalinks
“Settings” > “Permalinks” and choose your option there. For instance, choose “Post Name” and WordPress will create a “web.config” file for you ( on PHP hosting, the file is .htaccess )
You can follow this steps.
You can get the more details by
https://wplift.com/move-wordpress-microsoft-azure
https://whitepages.unlimitedviz.com/2016/10/migrate-wordpress-site-azure-inapp-mysql/
I've set up Gatsby with Wordpress, but now I'm trying to figure out how the workflow of adding new content to the site via WP and having it show up as static markup on the server would work. Is there's a recommended way to automate the process building new WP content?
I'm guessing something like this would happen but not sure what hooks or tools already exist.
Publish a new piece of content via Wordpress on the server.
A Gatsby build kicks off. This would pull in [all] WP content and rebuild the [entire] website.
Push [move] the built static files to the web root on server
I'm also not clear on if Gatsby monitors the WP API for changes in real time or does it only do one request initially on startup?
Gatsby does not monitor WordPress. You need to set up a webhook on the WordPress side to notify your build process whenever content has changed.
How would you go about hosting / deploying a React application with WordPress on the backend? I've been using the WP Rest API plugin and that API seems to need to be hosted. Would I also have to host my front-end React application on a separate server? Or would I somehow be able to put everything onto a shared hosting service like GoDaddy or GreenGeeks?
You have a handful of options. You have the power to host React and Wordpress separately, but I prefer to host mine on the same server using docker.
If your curious, check out this starter template: https://github.com/postlight/headless-wp-starter
It's one of my favorites, and it has react pre-wrapped in a docker container with straight forward instructions.
You probably has access to CPanel or similar tools to deploy your files onto server.
Reminder is to put your build files into a sub-folder rather than deploy onto server directly,
then public_html/your_project_sub_folder_name,
then you will be able to use that domain/your_project_sub_folder_name to access the reactjs
(You cannot have 2 apps deployed at the same time if they are not sub_folder separated)
At the same time, you gain original access to WP_REST to get post data in json format already, you can create your own custom end points if needed.
Here is the anwser on how to create your own custom endpoint:
Creating custom endpoints Wordpress
Yes you can host your React App and WP separately or Host it together in one.
I tried this creating React Build Files inside WP Theme. Not yet perfect but working.
This simple WP Theme with React Build files:(React Build Folder inside WP Theme).
https://github.com/jun20/Simple-WP-ReactJS-Theme-Demo
And this is the reactjs dev files:
https://github.com/jun20/wp-theme-reactjs-dev/tree/master/Final/end
although this is not production ready and not tested.
Or
You can use the Generated React JS Build Files only with the custom Routes and Endpoints from your WP Rest API.
Like in this example: (this the build files in repo Simple-WP-ReactJS-Theme-Demo)
This React JS Build folder -> https://github.com/jun20/wp-theme-reactjs-dev/tree/Final-Build/build
it has a routes and endpoints of posts, primary navigation, at pages from live wp site site.
You can put your build files (index.html, main.js, etc) into your htdocs folder or an appropriate sub-folder. You may need to change your Apache .htaccess configuration to redirect appropriate routes.
I have a website hosted on wordpress.com and I want to move it over onto a godaddy server.
Is there any way for me to transfer everything (theme, customized text, images, etc) over to my new host?
Yes you can transfer all your posts and images to a new hosting. Sign in to your WordPress.com account and go to your blog’s Dashboard. Click on Export under Tools menu.
Select “All Content” and press the Download Export File button. An XML file will be downloaded in your computer which will contain all of your posts, pages, images, comments, custom fields, categories, tags, navigation menus and other information.
Then To import your old content from WordPress.com to your new site, you need to click on Tools » Import option in your self-hosted WordPress.org dashboard.
More details with images can be found here
http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/
1)You can donwload you all files from ftp and download database from server or from admin using this plugin https://wordpress.org/plugins/wp-database-backup/
2)And upload files in new server and setup the database and go to the
wp-config.php in root and change the database details
3) Check your .htaccess file
4) Login in admin section and go to the settings tab and change the olde site URL with new one
I have created an application on Openshift adding a Wordpress cartridge which I have also installed my plugins and themes.
That is all right, but now I would like to add some custom application to my domain. I have already uploaded my custom application with "git push" to my Openshift application.
Now I realised that my default Wordpress cartridge is located in app-root/repo/php/ and my custom application is in app-deployments/current/repo/php/.
When I access my website through my browser I access my Wordpress website which is located in app-root/repo/php/ but I would to know how to also access my custom application which is in app-deployments/current/repo/php.
So when user access http://app-name-domain.rhcloud.com/ the server brings the wordpress website and when user access http://app-name-domain.rhcloud.com/my-custom-application, the server should bring him my custom application.
If you want to add another application to the same gear as your wordpress blog, then you should do a custom wordpress installation instead of using the wordpress openshift quickstart. That quickstart does some trickery in the background to download wordpress, install it, and do some symlinks to run it. You would be best off setting everything up custom in your php directory in your git repo and running it yourself the way you are describing how you want it to run.