Install supervisord centos 712/8/2022 To do that we will create a file on /etc/supervisord.d/ and name it ghost.ini: ~]$ vim /etc/supervisord.d/ghost.iniĬommand = node /var/directory = /var/user = root The next step will be to create the supervisor startup script for Ghost. ~]$ chmod +x /etc/rc.d/init.d/supervisordĪnd now we could enable and start the service: We set the right permissions to the file: Also, make sure that the location (directory) that you are defining to keep your access and errors logs exist. In my case is the site running this blog. Go to /etc/nginx/conf.d/ and create a new configuration file for the virtual host. In order to do that, we are going to go ahead and create a new virtual host for it. Migrations: Creating table: refreshtokensĪfter this, we are going to configure Nginx to serve the newly installed Ghost instance. Migrations: Creating table: client_trusted_domains Migrations: Creating table: permissions_apps Migrations: Creating table: permissions_roles Migrations: Creating table: permissions_users Migrations: Database initialisation required for version 006 It is recommended that you explicitly configure an email service. WARNING: Ghost is attempting to use a direct method to send email. The output will look like this: ~]$ npm start -production You need to make sure that on the output of this command Ghost is running. ~]$ npm install ghost -yĪfter Ghost is downloaded, we are going to proceed to install it:Ĭreate a directory where you want your Ghost packages to live, in my case the directory will be /var/and copy the software that npm downloaded to that folder: Please notice that this procedure will take a little bit to run. We are going to install Ghost using npm, you could also download Ghost from their website. Installingįirst, we are going to install Node.js and the npm tool: In this blog post, I will show how to install and configure Ghost on CentOS 7 to run behind Nginx. Ghost is a free and open source blogging platform written in JavaScript (Node.js) and is becoming really popular. I been a user of WordPress for couple years, but after having couple issues with it I decided to look for an alternative for my new blog ( ).Īfter a little of research, I found Ghost and decided to give it a try.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |