BoHong Li
5b2320f516
Revert "fix heroku again"
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-03-02 23:02:42 +08:00
BoHong Li
1cd4dce6b6
fix heroku again
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-03-02 22:21:01 +08:00
BoHong Li
109e751da8
fix: heroku .seqeulzierc file
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-03-02 22:11:43 +08:00
Yukai Huang
ae40a76c08
Drop yarn
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-17 11:41:33 +08:00
Sören Wegener
45d4daf0f3
Check for falsy existingUser variable. Fixes #1369
...
Use another return code for "User already exist"
This allows external scripts differentiating between "failure" and "everything is fine"
Co-Authored-By: Max Wu <jackymaxj@gmail.com>
Signed-off-by: Soeren Wegener <wegener92@gmail.com>
2019-12-05 15:35:33 +01:00
Yukai Huang
3bffa18771
Remove BUILD_ASSETS env
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-20 10:32:40 +08:00
t.goto
af6bbb4041
Remove unnecessaries
...
Signed-off-by: t.goto <tomoyan777@gmail.com>
2019-08-14 08:33:59 +09:00
t.goto
808ad29ab2
Remove dialect from .sequelizerc file.
...
Signed-off-by: t.goto <tomoyan777@gmail.com>
2019-08-13 15:37:58 +09:00
BoHong Li
9a15af32f9
refactor: fix lint warning on bin/manage_users
...
Signed-off-by: BoHong Li <a60814billy@gmail.com>
2019-04-12 18:24:55 +08:00
Daan Sprenkels
7c144ac7a9
Fix broken manage_users after Winston upgrade
...
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>
2019-01-10 14:05:12 +01:00
Christoph (Sheogorath) Kern
6f7fd74b1a
Merge pull request #943 from SISheogorath/feature/improveSetup
...
Some minor improvements for setup script
2018-11-17 12:42:24 +01:00
Erona
3abf1f04ed
feat(bin): ensure email exists
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 23:11:32 +08:00
Erona
e90d4d824b
feat(bin): add option --reset to reset user password
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 23:11:32 +08:00
Erona
79842b82e8
refactor(bin): add function getPass in bin/manage_users
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 23:11:32 +08:00
Erona
63626b1267
refactor(bin): eliminate `var` and use template string refactor string things
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 23:11:32 +08:00
Erona
2f82e0c86a
refactor(bin): add function showUsage to refactor usage things
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 23:11:19 +08:00
Erona
7b12945c49
refactor(bin): refactor check args in bin/manage_users
...
Signed-off-by: Erona <erona@loli.bz>
2018-10-29 22:34:45 +08:00
Sheogorath
5aec047a3e
Some minor improvements for setup script
...
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>
2018-09-06 15:04:20 +01:00
Sheogorath
4b060c7dba
Rebrand HackMD to CodiMD
...
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24 13:24:12 +02:00
Sheogorath
a40dcdd222
Prevent "wrong type"-issue
...
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>
2018-01-29 22:41:12 +01:00
Dario Ernst
9e0359e079
Add simple user-management tool for emailsignin …
...
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>
2018-01-29 19:49:04 +01:00
Sheogorath
6ed44f0864
Prevent argument breaking by spaces
2017-10-10 13:36:37 +02:00
Yukai Huang
1af3727fef
Remove npm install in heroku build
...
since heroku detects yarn.lock automatically
2017-05-07 18:54:18 +08:00
Sheogorath
9122ccd1b8
Add fail fast option
...
Fail the script if a command inside it fails to prevent a install with exitcode 0 even when commands in it are failing.
2017-01-23 06:11:20 +01:00
Yukai Huang
1ed1996639
Remove config.js from setup files
2017-01-13 23:37:16 +08:00
bananaappletw
78c51e5e88
Revert "Rename npm script"
...
This reverts commit ed83dfc862
.
2017-01-04 14:30:47 +08:00
bananaappletw
936d922442
Remove unnecessary db config of heroku
2016-12-22 15:28:44 +08:00
Yukai Huang
74c1da4536
Simplify output with sequelize database argument
2016-12-12 10:36:24 +08:00
Yukai Huang
50b72c7f03
Fix heroku production db setting
2016-12-12 08:58:37 +08:00
Yukai Huang
9e6fd505e1
Remove bower occurences
2016-12-11 11:18:08 +08:00
Yukai Huang
ed83dfc862
Rename npm script
...
webpack scripts are meant to “build” assets, so place them under the same namespace
* dev => build:dev
* build => build:prod
2016-12-10 22:12:07 +08:00
Yukai Huang
9f63581c61
Config heroku deployment
2016-10-16 11:20:29 +08:00
Wu Cheng-Han
bf4c6d021c
Extract config.js from common.js to make client setting file clean and also make upgrade easier
2016-10-10 16:25:51 +08:00
Yukai Huang
69c14a274d
Do not recommend anything in setup script
2016-10-05 14:09:39 +08:00
Yukai Huang
934ed7c0d9
Copy config only when file not exist
2016-10-05 12:12:21 +08:00
Yukai Huang
5dfa83d350
Update config description
2016-10-05 12:07:07 +08:00
Yukai Huang
79f64d0503
Create bin/setup script
2016-10-05 11:39:45 +08:00