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

Post History

#3: Post edited by user avatar zetyty‭ · 2023-07-04T07:40:41Z (11 months ago)
add file path
  • 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:
  • <details>
  • <summary>
  • Do not do this for production instances!
  • </summary>
  • In the file `_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 %>
  • ```
  • </details>
  • 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:
  • <details>
  • <summary>
  • Do not do this for production instances!
  • </summary>
  • 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 %>
  • ```
  • </details>
#2: Post edited by user avatar Taeir‭ · 2023-07-03T14:45:10Z (11 months ago)
  • 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.
  • 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 also work. 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:
  • <details>
  • <summary>
  • Do not do this for production instances!
  • </summary>
  • In the file `_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 %>
  • ```
  • </details>
  • 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:
  • <details>
  • <summary>
  • Do not do this for production instances!
  • </summary>
  • In the file `_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 %>
  • ```
  • </details>
#1: Initial revision by user avatar Taeir‭ · 2023-07-03T14:44:11Z (11 months ago)
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.

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 also work. 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:

<details>
<summary>
Do not do this for production instances!
</summary>
In the file `_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 %>
```
</details>