D
D
DaniilDorovenko2017-08-29 10:41:09
Ruby on Rails
DaniilDorovenko, 2017-08-29 10:41:09

Display view after editing?

Good day, I added an additional line to the application (site) view template with the following configuration:
front on react
back on ROR
deploy CAPISTRIANO
UNICORN+NGNIX web server
How to actually see the change without restarting the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Demidenko, 2017-08-29
@Dem1

By default, view is cached for performance in env other than development:
You have 2 options:
1) Reload the server (recommended option)
2) In the config, write (you need to beat hands for this):
config.action_view.cache_template_loading = false

A
Alexander Petrov, 2017-08-29
@Mirkom63

Set up capistrano with git. And deploy the site through the command line. One command was entered in the terminal and in a minute the site was updated on the server.
although you wrote about capistrano. I don't understand what is the problem...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question