1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00
Commit graph

148 commits

Author SHA1 Message Date
Éric Gaspar
e245246c47 Update backup 2024-07-22 20:04:31 +02:00
Éric Gaspar
8106b12fdb Update restore 2024-07-22 19:47:10 +02:00
Éric Gaspar
9ef5bbbb2a Update _common.sh 2024-07-22 19:46:03 +02:00
Éric Gaspar
450a1199ab fix 2024-07-22 19:42:50 +02:00
Yunohost-Bot
6502645ca2 [autopatch] Do not delete logs on app removal 2024-06-23 18:45:33 +02:00
tituspijean
f9df99cb57
Move https config and force upgrade 2024-01-12 21:33:48 +01:00
tituspijean
c1cdca5b2c
Fix https url config 2024-01-12 21:21:28 +01:00
tituspijean
ce63f5591e One letter is missing and you are stripped of everything 2024-01-11 21:26:22 +00:00
tituspijean
7419e559ac
Make sure configuration is correct 2023-09-05 22:12:27 +02:00
tituspijean
a6d0fb911b
Use IPv4 for localhost servers connections 2023-09-03 21:07:37 +02:00
tituspijean
4fae3feb35
Upgrade NodeJS version to 18 2023-09-03 20:55:53 +02:00
tituspijean
f832256930
Remove now useless comment in upgrade 2023-08-29 07:55:09 +02:00
tituspijean
7caa81ab45
Fix .config directory handling in upgrade 2023-08-28 12:18:33 +02:00
tituspijean
d90ac95cdb
Ensure does not need any prompt 2023-08-27 19:00:48 +02:00
tituspijean
f796e46e38
Add email configuration 2023-08-18 16:26:53 +02:00
Éric Gaspar
5af4c00a1c cleaning 2023-08-18 15:42:09 +02:00
tituspijean
2b0d658148
Enhance service monitoring 2023-08-18 13:26:12 +02:00
tituspijean
87b700c32b
Hotfix content dir migration
Fixes #230
2023-05-02 16:07:59 +02:00
tituspijean
6cc6d08388
Ensure proper upgrade 2023-04-30 18:17:09 +02:00
tituspijean
ddaf67ebd5
Handle future upgrades 2023-04-24 22:05:33 +02:00
tituspijean
aef5cf98f2
Cleanup Yarn cache 2023-04-24 22:01:25 +02:00
tituspijean
6dff889d0c
Fix change_url after v2 2023-04-23 15:59:05 +02:00
tituspijean
d43fc135c9
Comply with CI demands and fixes 2023-04-22 19:01:57 +02:00
tituspijean
a5bde0406b
Finalize packaging v2 and upgrade to v5.44.0 2023-04-22 15:47:46 +02:00
tituspijean
9689e2415b
Packaging v2 and stop the install from source madness 2023-04-20 00:28:24 +02:00
tituspijean
e3e37eefa8
Patch for 5.21+ compatibility 2023-01-04 23:22:15 +01:00
tituspijean
61e35d5d0b
Fix admin build 2022-10-03 21:48:14 +02:00
tituspijean
814cd02abd
Make sure final_path is a git repo² 2022-09-26 23:24:42 +02:00
tituspijean
703ed9877d
Make sure final_path is a git repo 2022-09-22 21:36:03 +02:00
tituspijean
02aa33e51a
Specify homedir and yarnrc file for yarn commands 2022-08-14 17:17:17 +02:00
Badri
d9efcf7942 Increase yarn network timeout to 10 minutes
We often run into the error, `An unexpected error occurred:
"https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.1.tgz:
ESOCKETTIMEDOUT".` This seems to be a common problem with the
date-fns package, as well as other large packages installed with
older versions of Yarn. See for example the following GitHub
issues:

https://github.com/date-fns/date-fns/issues/1004
https://github.com/yarnpkg/yarn/issues/8242

The problem seems to be related to slow hard-disk access on the
client server/VPS - so it's actually the storage connection and
not the Internet connection, that's timing out.

A common workaround for this is to increase the network timeout
for Yarn long enough for the build will complete, which is what
we're doing in this case since it's likely to affect a lot of the
slower setups (including, as it seems, the YunoHost CI!). For
everyone else, the worst case is that they'll have to wait 10
minutes before they realise there's actually something wrong with
the network.
2022-08-13 11:29:12 +05:30
Badri
07f830d03b Fix update script: file check
Instead of checking for the existence of a file, we were checking
if config.production.json was a directory! Obviously, this would
end up failing (unless you've done something very strange with
your Ghost setup).
2022-08-12 14:11:15 +05:30
Badri
61616f907d Update to v5.8.3 and use new install format
Ghost has significantly changed their file structure, which means
the scripts had to be changed around quite a bit as well. We are
also using the readymade `yarn setup` tool to set up the Ghost
installation instead of manually running each command. Significant
changes are:

  - Config and content now lives under ./ghost/core instead of
    being directly in the project root. While updating, for
    backward compatibility, we're checking for the existence
    of the old folder as well
  - The admin interface is bundled along with the main Ghost
    package, so there is no need to download it separately
    (Casper is still being downloaded separately though)
  - We are using `yarn start` instead of knex, grunt, etc.
    (`yarn start` automatically calls those commands for us
    behind the scenes)
  - Similarly, we are now running `yarn start` to execute the
    Ghost process in the systemd config, instead of manually
    running `index.js` as we were doing earlier.

Fresh installs work well on this commit, though upgrades are yet
to be tested!
2022-08-11 10:07:20 +05:30
tituspijean
7d34728349
Fix Admin destination directory 2022-07-08 19:21:29 +02:00
tituspijean
9cef9cfc22
Fix all the things 2022-07-07 22:45:56 +02:00
tituspijean
89ff146207
No need to reinstall dependencies 2022-04-09 23:42:54 +02:00
tituspijean
e92f13335c
Fix path test in change_url 2022-02-26 18:55:56 +01:00
Melchisedech
e8716956c7
Fix typo in a comment 2022-02-24 22:46:30 +01:00
tituspijean
b936030743
Add change_url script 2022-01-09 16:52:05 +01:00
tituspijean
4b52ee67fb
Wait for the service to start properly 2021-12-17 09:43:03 +01:00
ericgaspar
1cedee1f1b Fix 2021-11-20 10:40:08 +01:00
tituspijean
afe60a0227
Enforce file ownership in upgrade 2021-10-25 18:06:50 +02:00
tituspijean
2ac2192c73
Fix building steps 2021-10-24 18:09:43 +02:00
tituspijean
1bb2849165
Remove log monitoring
In production mode, the log file name is hard to guess...
2021-10-24 12:09:49 +02:00
tituspijean
a6f38d51c1
Build as $app user 2021-10-23 20:14:15 +02:00
ericgaspar
77a7af95e9
Add logrotate 2021-10-03 13:54:44 +02:00
tituspijean
c307a6e097 Remove ynh_webpath_available in restore 2021-09-29 09:42:35 +02:00
tituspijean
aeb2b8eefd Silence all build warnings 2021-09-29 09:42:35 +02:00
tituspijean
545183c8ae Upgrade to v4.16.0 2021-09-29 09:29:05 +02:00
ericgaspar
5f801b98e5 Update install 2021-07-15 13:54:00 +02:00