Can I change configuration (application.conf) of production without recompile? - configuration

I have a play 2.3.3 application which I deploy in production mode to server. I want to change configuration parameters without recompile and redeploy. Is it possible?
I tried to manipulate the file on the server after what I restarted the app, but it seems it doesn't catch up the changes

Specify an alternate config file and modify that one: https://www.playframework.com/documentation/2.3.x/ProductionConfiguration

Related

Using Configuration File instead of System Registry

The Portal UI React application makes use of the Registry settings instead of a local settings.json file in order to run the application on the local environment.This is a pain for the developer because everytime a Registry is updated the system needs a restart which is not a advisable kind of approach in this fast moving development world. There is less flexibility and more dependency while using the Registry settings instead of a local json based configuration file.
I propose to move all the configuration files into local json file and checkout the file in the applications repository.
If there is any other approach which would make this easy to use scenario then pls share your thoughts.
Thanks
Iftekhar

PhpStorm configure to work remotely

Hi is there a way for PhpStorm to work directly on a remote server? No local files. Because as of the moment PhpStorm has local files wherein it just automatically uploads all files during save on remote.
My problem is if someone changes something remotely I need to manually download it first before seeing the changes.
It's not possible to fully operate on a remote server. Phpstorm need a local project, which contain the .idea folder. You can edit remote files without downloading them to the project folder. But in this case the entire list of features is not available.
For you can be useful the following settings:
tools->Deployment->Options:
warn when uploading over newer file
Notify about remote changes

PhpStorm - working on a remote server

I have never used PhpStorm before for remote development because I used to work locally.
I am wondering if there is a method to set PhpStorm to work in such a way so it will be identical, in terms of functionality, to local development?
At least, debugging and jumping to functions/variables declaration across the whole project?
Tried to google it but found nothing. Maybe someone knows?
There are two ways to work with remote server development :
With a physically server
With a Virtual Machine locally
Those 2 ways are identical workflow parameters for working with this.
In PHPStorm the main area for parameters workflow deployement on remote server is : PHPStorm > Settings > Build, Execution, Deployement > Deployement
In this area you config the connection on your remote server (you before must config access on your remote server). SFTP is the best way to use this connection.
Most important to select where you want to send/push your modified code with Root path. Upload manually or use the sync auto functionality of PHPStorm use this parameter.
Mappings tabs is not very important you can keep this without change except for 'Deployement path on server' which just type '/' character if you have selected the good 'Root Path' in tab before.
For starting you can forget the Excluded Paths tab. after if you work on symfony framework you use this to exclude the vendor directory.
Don't forget to set the options 'use as Default' if you want to upload or sync auto more fastly and friendly.
Now you must parameters and config correctly your remote server for server be able to run the code which send it with PHPStorm. Dependly on your framework or other technologies you use.
Finally you have :
PHPStorm config OK for send correctly your modification code (auto or manually)
remote server config OK for executing and running correctly the code you are before sending from PHPStorm to your server remote
WARNING : you never run your website into your local OS.
IMPORTANT : config a web server on your remote server and don't forget to install layer for PHP executing script.

Updating configuration for Play without downtime

I want to change settings -- adjust timeouts, enable flags, etc. -- without the downtime of restarting the Play server. Is there a good way to do this?
My current idea:
Play supports external configuration files.
In my case, I am using Chef to manage the external configuration file.
If the external configuration file changes, will subsequent calls to configuration reflect those changes, or will I have to restart the Play server?
You'll have to restart. Java classpaths are immutable (excluding things like JRebel) and Play's config file is loaded from the classpath.
You can setup a load balancer, haproxy for example, with 2 instances of application. When you need to reconfigure, just drop onde of the instances of the load balancer. And after you enable again.
Alberto

How to upgrade openwrt without losing the configuration?

I need to make a script to upgrade my router without losing the configuration files and packages installed on the router.
I tried to repeat the same behavior of the interface in my script (I used the command sysupgrade) but I lost the config.
Besides, I have tried the upgrade with the interface with the option keep luci but it does not work too, I lost all the data router.
The command sysupgrade does not retain the configuration.
Is there anyone who offer me a solution?
Thank you in advance for your help.
You can use "Backup & Restore" feature from the webUI (luci) to save/load configuration files to/from you PC.