Commit Graph

356 Commits (3196311f1516dabfab6eea19c10f439c169d36d2)

Author SHA1 Message Date
Peter Jaszkowiak 3299324534 Fix console colors with `app.js`
Closes 
Peter Jaszkowiak ae24bca16e CLI refactor with commander ()
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
Barış Soner Uşaklı 2aaf6900d1 closes
Peter Jaszkowiak 1c5bdcb670 Enable running multiple upgrades at once ()
Peter Jaszkowiak 1c35213934 Fix and forking while debugging ()
* Fix forking while debugging

Debugger address in use no longer happens

* Fix cropper error
Baris Usakli 8fae8cea83 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Baris Usakli 18db0734b0 newline
Baris Usakli bc0645dc26 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Julian Lam f56578ab50 remove reset tokens if target user email changes
Peter Jaszkowiak 90296b92cd Override winston to use console.log instead of stdout
Julian Lam d98b3e8056 automatically lowercasing env vars in nconf, fixes
Julian Lam 29e868b002 closes
Barış Soner Uşaklı aabfe8f41f fix lint
Barış Soner Uşaklı 3c8460fee0 disable timeout
barisusakli 236758b712 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
barisusakli 9e3d8a8090 one more fix
barisusakli 27a76fcfc9 closes
Peter Jaszkowiak 484a800327 Merge branch master into develop
Peter Jaszkowiak 75d291183d Fix using nodebb in other CWDs
Julian Lam 74728a1328 Merge branch 'develop' into upgrades-refactor
Julian Lam 5b8c9503c3 refactor upgrade scripts to use individual files in src/upgrades/ as source of schema changes
Peter Jaszkowiak 64a6322002 ESlint no-extra-boolean-cast
and no-shadow-restricted-names
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Julian Lam 7ba111acdd Merge pull request from NodeBB/assets-route
/assets/uploads
Peter Jaszkowiak aaacdb8413 Fix , uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
Julian Lam a48c914a16 explicitly cast jobsDisabled as Boolean
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts
Peter Jaszkowiak 553567c3b2 Refactor `nodebb`, move `build.js`, add `--dev`
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
barisusakli c36e2aa13d refactor app.js/start
psychobunny fa12a3e7e6 updating to 2017 (was looking for a reason to test auto-update of https://github.com/NodeBB/NodeBB/wiki/Hooks)
barisusakli c32e6aaabb use build module instead of forking
Barış Soner Uşaklı 7f455344d8 show seconds in logs
Barış Soner Uşaklı e0501656b6 parallel startup
Julian Lam ad732935fb closes
barisusakli e86db04631 run build step before tests
move build to its own file
Julian Lam 7a10cffb25 fix Gruntfile.js to work with bew build step
Julian Lam 9bab0b53b0 re: , broke out meta.css.minify to accept targets, made build output marginally nicer looking
Julian Lam 232b387652 set up plugins in build step as well
barisusakli 71c7ef9109 fix test
barisusakli 4f0e93732a
remove passing js/css between procs
Julian Lam 1617c99e7b linting app.js
Julian Lam 03cf5d8da5 upgrade and setup steps call build step now, re: