Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How to remove the "This site is in development mode!" message with local QPixel? Question

+2
−0

How to remove the following red message (see also the picture below) displayed on the top of each pages when running a local instance of QPixel?

This site is in development mode!

Illustration of the red message

In addition, is this message automatically removed when the soft is in "operation on a server"[1], even if it is running on a private network?


  1. I'm not sure about the words in double quotes here but I mean what it is described in this post ↩︎

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Automatically removed in production (1 comment)

1 answer

+4
−0

In general: if you are seeing that message you have not configured your instance to be in production mode. The warning is there because certain protections and checks are not enabled in development mode, and it should not be used like that in production.

When running in production mode, the message will automatically disappear. You can start the server in production mode by running bundle exec rails s -e production. If you are using the docker set-up, there is a config file which allows you to set a so-called environment. Change it to production and it should do the same. Note that settings like where files are stored and which database credentials to use are also distinct per environment.

If despite all the above you still want to forcibly remove the message:

Do not do this for production instances! In the file `app/views/layouts/_header.html.erb` ~ line 282-288, remove the block of code which renders it:
<% if Rails.env.development? %>
  <div class="notice is-danger is-banner has-padding-2 notice__dev-mode has-color-red-900">
    <div class="container">
      <p>This site is in development mode!</p>
    </div>
  </div>
<% end %>
History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »