Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance mode #2099

Closed
barisusakli opened this issue Sep 16, 2014 · 12 comments
Closed

maintenance mode #2099

barisusakli opened this issue Sep 16, 2014 · 12 comments
Assignees
Milestone

Comments

@barisusakli
Copy link
Member

when enabled through the ACP only admins can access the forum, others are served a maintenance page

@barisusakli barisusakli added this to the 0.5.1 milestone Sep 16, 2014
@psychobunny
Copy link
Contributor

Would be cool if we could just spawn a simple node.js app with express that serves just the maintenance mode page, this way if you're derping around with NodeBB (restarting/crashes/etc) the users will still see this page?

@julianlam
Copy link
Member

Good idea. As long as loader.js is still running it should be fine.

Cluster restarting needs some TLC however.

@julianlam julianlam self-assigned this Sep 21, 2014
julianlam added a commit that referenced this issue Sep 23, 2014
@cnvo
Copy link
Contributor

cnvo commented Sep 23, 2014

👍

@julianlam
Copy link
Member

Actually, it's not quite done... needs styling. This is what it looks like right now 😆

@cnvo
Copy link
Contributor

cnvo commented Sep 23, 2014

Nevertheless, this should be fun styling. I would use the outgoing page template as a base (without the header menu's, and etc.)

@julianlam
Copy link
Member

Needs:

  • Login form
  • To allows POST /login through

@julianlam julianlam reopened this Sep 23, 2014
@julianlam julianlam modified the milestones: 0.5.2, 0.5.1 Sep 29, 2014
@andreapernici
Copy link

How to login as admin when the site is in maintaince?

@julianlam
Copy link
Member

@andreapernici Not implemented yet -- please see the unchecked box in my last comment 😄

Edit: Did you accidentally lock yourself out? If so, run hset config maintenanceMode 0 in redis

@julianlam
Copy link
Member

selection_014

Looks better, I hope 😄

@andreapernici
Copy link

Tried @julianlam
hset config maintenanceMode 0

but is not working from redis-cli

@julianlam
Copy link
Member

Please report NodeBB version and commit hash.
On 29 Oct 2014 05:02, "Andrea" notifications@github.com wrote:

Tried @julianlam https://github.com/julianlam
hset config maintenanceMode 0

but is not working from redis-cli


Reply to this email directly or view it on GitHub
#2099 (comment).

@andreapernici
Copy link

I solved doing this on 0.5.3-dev

hset config maintenanceMode 1

and then

hset config maintenanceMode 0

Restarted Redis and Nodebb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants