Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Develop in /usr/local/opnsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: Develop in /usr/local/opnsense (Read 3545 times)
ruslan-gennadievich
Newbie
Posts: 18
Karma: 1
Develop in /usr/local/opnsense
«
on:
September 12, 2020, 01:36:09 am »
I make some fix in gui, but my changes not apply (if i refresh page). How i can see my change? Maybe i can disable any cache to develop-debug process? How i can do it?
Logged
ruslan-gennadievich
Newbie
Posts: 18
Karma: 1
Re: Develop in /usr/local/opnsense
«
Reply #1 on:
September 13, 2020, 01:06:31 am »
Now i clear /tmp and then run
11) Reload all services
Maybe some body have more true way?)
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Develop in /usr/local/opnsense
«
Reply #2 on:
September 13, 2020, 06:53:57 am »
What exactly did you change?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
ruslan-gennadievich
Newbie
Posts: 18
Karma: 1
Re: Develop in /usr/local/opnsense
«
Reply #3 on:
September 16, 2020, 07:07:22 pm »
Quote from: mimugmail on September 13, 2020, 06:53:57 am
What exactly did you change?
I want to create new plugin, so i change some files in /usr/local/opnsense/mvc
I use this doc
https://docs.opnsense.org/development/frontend/models_design.html
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Develop in /usr/local/opnsense
«
Reply #4 on:
September 17, 2020, 08:40:40 am »
Not specific enough.
Logged
ruslan-gennadievich
Newbie
Posts: 18
Karma: 1
Re: Develop in /usr/local/opnsense
«
Reply #5 on:
September 24, 2020, 04:49:36 pm »
For example, i edit src/opnsense/mvc/app/models/OPNsense/MyModule/Menu/Menu.xml
How i can see any changes? How i can disable all cache??
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Develop in /usr/local/opnsense
«
Reply #6 on:
September 24, 2020, 05:07:42 pm »
Aha, that is better...
/usr/local/etc/rc.configure_plugins will refresh the menu and ACL cache as well as restarting syslog.
It is the standard hook for the plugin framework executed on +POST_INSTALL:
https://github.com/opnsense/plugins/blob/master/Templates/configure
This is why we try to provide an automatic plugin framework because it will give you less headache.
Cheers,
Franco
Logged
ruslan-gennadievich
Newbie
Posts: 18
Karma: 1
Re: Develop in /usr/local/opnsense
«
Reply #7 on:
September 24, 2020, 06:04:48 pm »
Thank you) Add this to Develop Documentation, please
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Develop in /usr/local/opnsense
«
Reply #8 on:
September 24, 2020, 09:22:41 pm »
Just use the plugin framework and you're good... There's no reason not to unless you are modifying core which also provides similar Makefile glue and post-install hooks...
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Develop in /usr/local/opnsense