Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. I'm new to Ghost. How comes modifying my theme doesnt show?

I'm new to Ghost. How comes modifying my theme doesnt show?

Scheduled Pinned Locked Moved Ghost
13 Posts 4 Posters 2.2k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    therealwebmaster
    wrote on last edited by
    #1

    Just installed Ghost!

    Modifying theme file in /home/yellowtent/appsdata/5131bf16-d7gfdgfdgfdgdfcd-431d-8c32-4b5e322c7934/data/content/themes/mytheme/default.hbs and saving changes doesn show on my wbesite.

    Do I have to launch a rebuild command or something else after each changes?

    girishG 1 Reply Last reply
    1
    • T therealwebmaster

      Just installed Ghost!

      Modifying theme file in /home/yellowtent/appsdata/5131bf16-d7gfdgfdgfdgdfcd-431d-8c32-4b5e322c7934/data/content/themes/mytheme/default.hbs and saving changes doesn show on my wbesite.

      Do I have to launch a rebuild command or something else after each changes?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @therealwebmaster mmm, why are you editing files straight from the filesystem ? You should use the file manager - https://docs.cloudron.io/apps/#file-manager .

      But regardless,

      a) did you restart the app after making changes?

      b) is ghost actually using your custom mytheme ?

      T 1 Reply Last reply
      0
      • girishG girish

        @therealwebmaster mmm, why are you editing files straight from the filesystem ? You should use the file manager - https://docs.cloudron.io/apps/#file-manager .

        But regardless,

        a) did you restart the app after making changes?

        b) is ghost actually using your custom mytheme ?

        T Offline
        T Offline
        therealwebmaster
        wrote on last edited by
        #3

        @girish

        a) did you restart the app after making changes?

        No, but is it mandatory after each change to the template? Do you mean restart in cloudron or in command line?

        b) is ghost actually using your custom mytheme ?

        Yes

        1 Reply Last reply
        0
        • T Offline
          T Offline
          therealwebmaster
          wrote on last edited by
          #4

          Changes worked after upgrading the app.

          Does anyone knows he command to restart the app from command line?

          jdaviescoatesJ girishG 2 Replies Last reply
          0
          • T therealwebmaster

            Changes worked after upgrading the app.

            Does anyone knows he command to restart the app from command line?

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #5

            @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

            Does anyone knows he command to restart the app from command line?

            I don't, but you can just do it via the GUI. In the Repair section of the Apps settings there is a Restart App button:

            6623ae4b-03a5-49de-a9a8-bfe2ec691833-image.png

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            0
            • T therealwebmaster

              Changes worked after upgrading the app.

              Does anyone knows he command to restart the app from command line?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

              Changes worked after upgrading the app.

              Most likely this is not the upgrade that fixed it but that the app restarted after the upgrade. Looks like Ghost needs you to restart the app when you make theme changes.

              Does anyone knows he command to restart the app from command line?

              There is a restart button in top of file manager and also top of web terminal. You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

              jdaviescoatesJ 1 Reply Last reply
              1
              • T Offline
                T Offline
                therealwebmaster
                wrote on last edited by
                #7

                Thank @girish
                If i'm on the server terminal (on my PC, in Visua Studio, not the web version), what would be the command?

                1 Reply Last reply
                0
                • erikscholzE Offline
                  erikscholzE Offline
                  erikscholz
                  wrote on last edited by
                  #8

                  I think restarting Ghost won‘t help. There is some recompilation (or whatever) to be done with yarn. You could reupload the changed theme and then those recompilations are done. The coolest way would be using a GitHub action, though. You can edit the theme on your GitHub repository and the changes can be pushed onto your Ghost. The recompilation is automatically done. Here is the guide how to use it: https://ghost.org/integrations/github/

                  It‘s a while ago that I worked with it so sorry if my explanation is a bit weird. Aditionally you can also connect VS Code so you don‘t have to use the rather clunky editor on GitHub.

                  If someone cares I can check my setup and share with more details.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    therealwebmaster
                    wrote on last edited by
                    #9

                    Restarting app in Cloudron works! 🙌

                    Kinda unconvenient to go in Cloudron just for that. Now if anyone could show me the command line equivalent, this would be sorted!

                    erikscholzE 1 Reply Last reply
                    1
                    • girishG girish

                      @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                      Changes worked after upgrading the app.

                      Most likely this is not the upgrade that fixed it but that the app restarted after the upgrade. Looks like Ghost needs you to restart the app when you make theme changes.

                      Does anyone knows he command to restart the app from command line?

                      There is a restart button in top of file manager and also top of web terminal. You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #10

                      @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                      Now if anyone could show me the command line equivalent, this would be sorted!

                      Er

                      @girish said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                      You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

                      😉

                      I use Cloudron with Gandi & Hetzner

                      T 1 Reply Last reply
                      0
                      • T therealwebmaster

                        Restarting app in Cloudron works! 🙌

                        Kinda unconvenient to go in Cloudron just for that. Now if anyone could show me the command line equivalent, this would be sorted!

                        erikscholzE Offline
                        erikscholzE Offline
                        erikscholz
                        wrote on last edited by
                        #11

                        @therealwebmaster
                        Iteresting. I was not aware that themes are recompiled when Ghost is restarted.

                        A commandline guide how to recompile updated Themes is shown here:
                        https://sharedphysics.com/compiling-ghost-themes/

                        1 Reply Last reply
                        1
                        • jdaviescoatesJ jdaviescoates

                          @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                          Now if anyone could show me the command line equivalent, this would be sorted!

                          Er

                          @girish said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                          You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

                          😉

                          T Offline
                          T Offline
                          therealwebmaster
                          wrote on last edited by therealwebmaster
                          #12

                          You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

                          Thanks. But what would be the exact command? Do I have to install something on my PC side firt.

                          Tried these in terminal:

                          cloudron restart --ghost ghost.domain.com
                          restart --ghost ghost.domain.com

                          Both doesn t work. I got thes messages : bash: cloudron: command not found and bash: restart: command not found. Did I missed something? What directory does these command have to be called?

                          jdaviescoatesJ 1 Reply Last reply
                          0
                          • T therealwebmaster

                            You can also cloudron restart --app ghost.domain.com with the CLI tool (CLI tool is installed on your PC and not the server).

                            Thanks. But what would be the exact command? Do I have to install something on my PC side firt.

                            Tried these in terminal:

                            cloudron restart --ghost ghost.domain.com
                            restart --ghost ghost.domain.com

                            Both doesn t work. I got thes messages : bash: cloudron: command not found and bash: restart: command not found. Did I missed something? What directory does these command have to be called?

                            jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #13

                            @therealwebmaster said in I'm new to Ghost. How comes modifying my theme doesnt show?:

                            Do I have to install something on my PC side firt.

                            Yes, as @girish already said previously you need to install the Cloudron CLI on your PC.

                            See https://docs.cloudron.io/packaging/cli/ for more info.

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply
                            2
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Bookmarks
                            • Search