Commit Graph

41 Commits (dca3fc6e47218ac1153f9a181cd434a543eeaad3)

Author SHA1 Message Date
Chocobozzz 83e1e4dfb2
Fix backward compat upgrade script 2023-12-08 11:16:43 +01:00
Julien Rabier 7a953a6b2f Fix upgrade.sh when Peertube is installed outside the standard path (fixes #6063) 2023-11-29 11:03:44 +01:00
Chocobozzz 9880d2adf5
Improve changelog 2023-11-08 09:39:44 +01:00
Chocobozzz 3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Chocobozzz 97f57e928f
Add custom db port when upgrading peertube 2023-07-11 13:43:41 +02:00
Chocobozzz b30ad9888f
Add config file merging in upgrade script 2023-05-16 08:59:05 +02:00
Alvar C.H. Freude 9c50bf69f1 Add compatibility with FreeBSD ls
The ls command of FreebSD does not understand the --search=time parameter for the ls command. "ls -t" is equivalent and behaves on Linux in the same way.
2023-05-04 08:03:36 +02:00
John Livingston 7f6ff46222 Implement 5036: more readable diff on configuration file when upgrading. 2022-06-13 15:59:22 +02:00
Jocelyn Jaubert e7542293d6 Launch yarn before linking to new peertube version
If yarn fails because we don't have the correct nodejs version, we want to know
earlier, so that we can upgrade nodejs without having a non-working
half-installed peertube instance.
2021-11-22 08:52:54 +01:00
Chocobozzz 1fd8803cd9
No need to install client dependencies for upgrade 2021-08-26 10:01:42 +02:00
frankstrater 5ed25fb76e Remove annoying superfluous slash 2021-06-02 16:51:23 +02:00
Chocobozzz 86dc0b9cc9
Fix upgrade script 2021-05-28 15:54:18 +02:00
kontrollanten f076d49f37 script/upgrade: use db.name config value 2021-03-29 09:19:11 +02:00
Lukas Winkler a5ea2aeaf0 use .load instead of .safeLoad in js-yaml 2021-03-04 12:08:02 +01:00
tomamplius e6fdfdc292 Check pg_dump before backup (#1950)
* Check pg_dump before backup

When the database is not on the same host pg_dump can't be not present

* Update upgrade.sh
2019-07-02 19:05:23 +02:00
Luc Didry cd1a488981 Add reminder to restart PeerTube in upgrade script 2019-02-15 11:47:45 +01:00
Felix Ableitner 5c94c38d18 Check if awk and sed are executable 2018-12-04 09:31:36 +01:00
Felix Ableitner 7593929170 Check free storage before upgrading 2018-12-04 09:31:36 +01:00
Luc Didry d9d1989b62 Use DB informations from config/production.yaml in upgrade script
Avoid hardcoded values in upgrade script.
Avoid asking for DB password.
Uses python (usually installed on your system, even with minimal
installations) and some of its standard lib modules.
2018-10-11 13:31:57 +02:00
John Livingston 38d937002a fix diff order 2018-10-03 09:53:03 +02:00
John Livingston bebae342f3 using "diff -u", for a clearer display 2018-10-03 09:53:03 +02:00
Felix Ableitner cee43cf11c Added else 2018-09-28 10:35:59 +02:00
Felix Ableitner 4cd7a103da Add prompt to upgrade.sh to install pre-release version 2018-09-28 10:35:59 +02:00
Jocelyn Jaubert b4e5942ca7 Make it possible to change path used by upgrade.sh on command line 2018-05-22 08:08:40 +02:00
Jocelyn Jaubert ee1219d83d Move /var/www/peertube to $PEERTUBE_PATH in upgrade.sh 2018-05-22 08:08:40 +02:00
SVNET Libre ed9118bad0 Fixe Quotation marks on database backup files 2018-05-16 09:26:25 +02:00
Léo Andrès 0e4ffb4b67 Clean shell scripts (#398) 2018-03-27 10:35:12 +02:00
Gérald Niel f8087a5476 Update shebang and date format for working on FreeBSD (fix typo)
(not tested on Linux)
2018-03-19 22:13:29 +01:00
Gérald Niel 1069d3a4dc Update shebang and date to POSIX format for working on FreeBSD (not
tested on Linux)
2018-03-19 22:06:21 +01:00
SVNET Libre 34333925d2 Upgrade.sh : Add diff command for config update (#308)
* Add diff command for config update

* Add Context Information

"Updating Configuration File..."

* Modify context information for the config file
2018-02-21 17:16:52 +01:00
Chocobozzz 5a8eac36a7
Mkae upgrade.sh executable 2018-02-21 16:47:40 +01:00
Chocobozzz a8b5ce95f5
Better upgrade script consistency 2018-02-14 16:03:09 +01:00
SVNET Libre 64586951de Upgrade.sh (#281)
* Upgrade.sh

Bash script for upgrading Instance

* add bash strict mode

* move to "scripts" folder and other fix

* Rename scirpts/upgrade.sh to scripts/upgrade.sh

* Fix SQL BACKUP path

* Fix symbolic link update
2018-02-12 09:43:16 +01:00
Chocobozzz 4f13304181 Rename 'npm run upgrade' to 'npm run upgrade-peertube'
It was confusing with the command 'npm run update'
2017-06-25 16:30:45 +02:00
Chocobozzz 62be8e11e2 Don't generate yarn lockfile on upgrade 2017-06-24 10:17:44 +02:00
Bigard Florian 339f0c8062 Fix upgrade script (again...) 2017-04-27 16:00:10 +02:00
Bigard Florian aa77e1c2ac Fix upgrade script 2017-04-27 15:36:35 +02:00
Bigard Florian 94f12771f5 Add yarn to npm run upgrade 2017-04-27 11:38:42 +02:00
Chocobozzz 85ec3eb7f3 Remove Node 4 support 2017-04-26 22:32:33 +02:00
Chocobozzz d16a0ad851 Fix upgrade script 2016-10-21 14:46:17 +02:00
Chocobozzz 9f540774b1 Add upgrade script 2016-10-21 14:23:20 +02:00