summaryrefslogtreecommitdiff
path: root/bin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1246 from hedgedoc/fix/heroku_pg_sslDavid Mehren2021-05-091-0/+10
|\ | | | | Ignore Postgres SSL errors on Heroku
| * Ignore Postgres SSL errors on HerokuDavid Mehren2021-05-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | The connection to Heroku's Postgres instances must use SSL, but not check the certificate. This adds the necessary configuration to the Heroku setup script. Fixes #1245 Signed-off-by: David Mehren <git@herrmehren.de>
* | Docs: Add mention to install devDependenciesPhilip Molares2021-05-081-1/+1
|/ | | | | | | Before `yarn build` can be succesfully run, we need to install the devDependencies. This is necessary, because `bin/setup` does not install the devDependencies… Signed-off-by: Philip Molares <philip.molares@udo.edu>
* Only install production dependencies in bin/setupDavid Mehren2021-05-051-2/+1
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Fix version error wording in bin/setupDavid Mehren2021-04-221-2/+2
| | | | | | | | | | | The previous error message stated that the version of Node or Yarn is "outdated", which might be accurate coincidentally, but is not what the script checks. This commit changes the wording to use "not supported", which is more accurate to the true check in the script. Signed-off-by: David Mehren <git@herrmehren.de>
* Raise minimum required Node.js version to 12David Mehren2021-04-221-2/+2
| | | | | | | | | As Node 10 will be EOL at April 30th, we should stop supporting and/or promoting the usage of that version. See also https://endoflife.date/nodejs Signed-off-by: David Mehren <git@herrmehren.de>
* Update link to config docs in setup scriptDavid Mehren2021-03-061-1/+1
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Remove .sequelizercDavid Mehren2021-03-062-17/+0
| | | | | | | | After https://github.com/hedgedoc/hedgedoc/pull/969 was merged, a separate configuration file for the sequelize-cli is no longer required. Signed-off-by: David Mehren <git@herrmehren.de>
* Switch to minio v7 APIDavid Mehren2021-02-121-2/+2
| | | | | | | The secure parameter is now called useSSL https://github.com/minio/minio-js/releases/tag/7.0.0 Signed-off-by: David Mehren <git@herrmehren.de>
* Fix inconsistent spacing in bin/setupDavid Mehren2020-11-171-5/+3
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Fix shellcheck error in bin/setupDavid Mehren2020-11-171-1/+1
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Improve wording of yarn version error in setup scriptDavid Mehren2020-11-171-1/+1
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Prettify messages in setup scriptDavid Mehren2020-11-171-9/+10
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Update checks for correct Node.js and Yarn versionsDavid Mehren2020-11-171-6/+10
| | | | Signed-off-by: David Mehren <git@herrmehren.de>
* Add some version checks to setup scriptSheogorath2020-11-171-1/+19
| | | | | | | | | | | There are some distros out there, shipping quite outdated packages with them, which results in weird issues. Let's check that we have a more or less up to date version of node and yarn installed. This patch adds those checks and this way should provide some helpful error messages to people who try to install CodiMD. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Correct repo nameTilman Vatteroth2020-11-141-1/+1
| | | | Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
* Replace CodiMD with HedgeDocErik Michelson2020-11-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in public/views Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in README Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in SECURITY.md Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in LICENSE Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in docs/configuration.md Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in bin/setup Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/guides Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/dev Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/guides/auth Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/setup Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update various links in code to the new GitHub org. Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: codiMDVersion.js is now hedgeDocVersion.js Signed-off-by: David Mehren <git@herrmehren.de> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: References in docs/setup/yunohost Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rebrand to HedgeDoc: Add banner and logo Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Update links in docs/guides/migrate-etherpad Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Remove note in docs/guides/auth/github Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace links in public/docs/features Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add todo placeholder in docs/history Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace github link in public/views/index/body Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Replace github link in README Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add logo to README Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Rename to HedgeDoc: Add note about the renaming to the front page Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Removed Travis from README.md and change CodiMD to HedgeDoc in some places Signed-off-by: Yannick Bungers <git@innay.de> Some more renaming to HedgeDoc - Fixed capitalization of HedgeDoc - Added renaming for etherpad migration doc Signed-off-by: Yannick Bungers <git@innay.de> Changed Repo name to hedgedoc Signed-off-by: Yannick Bungers <git@innay.de>
* Adds convenience script to migrate to minio.pierreozoux2020-11-121-0/+79
| | | | Signed-off-by: pierreozoux <pierre@ozoux.net>
* Fixed eslint errors (whitespaces)Erik Michelson2020-03-211-19/+23
| | | | Signed-off-by: Erik Michelson <erik@liltv.de>
* Clean up all foreign-key constraintsSheogorath2020-03-211-0/+20
| | | | | | | | | | | This patch cleans up the remaining possible foreign-key constraint. This case seem to appear, when notes are deleted, but due to missing database contraints not their authroships. This function should clean that up as well and complete the preparation for the new db contraints. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Reduce requested arguments on cleanupSheogorath2020-03-211-6/+13
| | | | | | | | In order to prevent OOM situations due to large databases, this patch should reduce the amount of data requested from the database drastically. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* fixup! Add fix for missing deletion of notes on user-deletion requestSheogorath2020-03-211-0/+17
|
* Add fix for missing deletion of notes on user-deletion requestSheogorath2020-03-211-0/+56
| | | | | | | | | | | | | | | | | | | | | | Depending on how the system was setup, this bug lead to keep user's data around even after a successful deletion of user'S account. This patch will make sure the missing database constraints are implemented and missed out deletions are executed. This bug was introduced to insufficent testing after implementing the feature initially. It was well tested, using the app process itself, but the migrations where missed out. I'm currently not sure, if there was also a change in how sequelize handles cassaded deletion, since I'm unter the impression that before switching to sequelize 5, this feature has worked. But I haven't verified this. No matter what, the cleanup process is rather straight forward and will be invoked on migration, but can also be done manually using the new `bin/cleanup` script. This change will result in a release 1.6.1. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* heroku complains about dialectClaudius2020-01-111-2/+1
| | | | Signed-off-by: Claudius <opensource@amenthes.de>
* Check for falsy existing_user variable. Fixes #234Soeren Wegener2019-12-091-4/+4
| | | | | | | Use another return code for "User already exist" This allows external scripts to differentiate between failure reasons. Signed-off-by: Soeren Wegener <wegener92@gmail.com>
* cleanup of the heroku configurationClaudius2019-03-311-8/+2
| | | | | | | | | | this removes the general `postinstall` call to `bin/heroku` and instead puts it into a heroku-prebuild hook. At the same time, env vars get updated to use the `CMD` prefix. The configured buildpacks were not used. Finally, npm run build is now automatically done by Heroku. Signed-off-by: Claudius <opensource@amenthes.de>
* Update links to new repositoriesSheogorath2019-03-271-1/+1
| | | | | | | | | | | | After a long discussion, it turned out that CodiMD as community project and HackMD as a company, have fundamental different views on the project governance. Due to this, it came to point where the decision for a fork was made. After the fork and move towards an own organisation, this patch updates all links inside the project to the new repositories. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Fix broken manage_users after Winston upgradeDaan Sprenkels2019-01-101-1/+1
| | | | | | | | Commit c3584770 upgrades Winston and with that version `logger.transports.console` becomes undefined. This commit updates the code to prevent the crash. Signed-off-by: Daan Sprenkels <hello@dsprenkels.com>
* Merge pull request #943 from SISheogorath/feature/improveSetupChristoph (Sheogorath) Kern2018-11-171-4/+6
|\ | | | | Some minor improvements for setup script
| * Some minor improvements for setup scriptSheogorath2018-09-061-4/+6
| | | | | | | | | | | | | | Since we use `yarn` for our container setup and try to enforce dependencies, we should also use yarn in the setup script. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* | feat(bin): ensure email existsErona2018-10-291-0/+4
| | | | | | | | Signed-off-by: Erona <erona@loli.bz>
* | feat(bin): add option --reset to reset user passwordErona2018-10-291-1/+21
| | | | | | | | Signed-off-by: Erona <erona@loli.bz>
* | refactor(bin): add function getPass in bin/manage_usersErona2018-10-291-8/+11
| | | | | | | | Signed-off-by: Erona <erona@loli.bz>
* | refactor(bin): eliminate `var` and use template string refactor string thingsErona2018-10-291-15/+16
| | | | | | | | Signed-off-by: Erona <erona@loli.bz>
* | refactor(bin): add function showUsage to refactor usage thingsErona2018-10-291-8/+7
| | | | | | | | Signed-off-by: Erona <erona@loli.bz>
* | refactor(bin): refactor check args in bin/manage_usersErona2018-10-291-14/+17
|/ | | | Signed-off-by: Erona <erona@loli.bz>
* Rebrand HackMD to CodiMDSheogorath2018-06-241-4/+3
| | | | Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Prevent "wrong type"-issueSheogorath2018-01-291-1/+1
| | | | | | | | | | The argument is may interpreted as number which causes the "pass" parameter of the user creation to fail. Probably the same applies to the mail address. But mail addresses are by definition not allowed to start by a number (iirc) which makes it less a problem. This is mainly a quick fix. Should be refactored a bit in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Add simple user-management tool for emailsignin …Dario Ernst2018-01-291-0/+89
| | | | | | | | | Currently, administrators of closed instances need to manually fiddle in their databases for user-management. This commit adds a small commandline utility that allows to create and delete users. Signed-off-by: Dario Ernst <dario@kanojo.de>
* Prevent argument breaking by spacesSheogorath2017-10-101-2/+2
|
* Remove npm install in heroku buildYukai Huang2017-05-071-2/+0
| | | | since heroku detects yarn.lock automatically
* Add fail fast optionSheogorath2017-01-231-0/+2
| | | Fail the script if a command inside it fails to prevent a install with exitcode 0 even when commands in it are failing.
* Remove config.js from setup filesYukai Huang2017-01-132-6/+0
|
* Revert "Rename npm script"bananaappletw2017-01-041-1/+1
| | | | This reverts commit ed83dfc862768572eab0c2aed629b1700ac9e224.
* Remove unnecessary db config of herokubananaappletw2016-12-221-6/+0
|
* Simplify output with sequelize database argumentYukai Huang2016-12-121-29/+2
|
* Fix heroku production db settingYukai Huang2016-12-121-1/+34
|
* Remove bower occurencesYukai Huang2016-12-112-9/+3
|
* Rename npm scriptYukai Huang2016-12-101-1/+1
| | | | | | | webpack scripts are meant to “build” assets, so place them under the same namespace * dev => build:dev * build => build:prod
* Config heroku deploymentYukai Huang2016-10-162-2/+39
|