B4J Question [Solved] Running B4J app in Linux (Permission issue)

aeric

Expert
Licensed User
Longtime User
Which directory should I put my app in Linux file system? The best way is to copy to /home/myusername/myapp?

When I put the app in /usr directory:

If I run using sudo ./run.command, I can write to keyvaluestore but http failed.

If I run using ./run.command, I can't write to keyvaluestore file but http successful.

 

Attachments

  • terminal.txt
    2.5 KB · Views: 208

tchart

Well-Known Member
Licensed User
Longtime User
I deploy my apps to to root eg /myapp/ and I have config, sqlite databases etc I'm the same folder.

You shouldn't need to run it as sudo.

If you created the directory as sudo the your normal user probably doesn't have permission to write to the folder.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
In the second location, change the properties of the DB file to read and write.
If you are not allowed - use nemo.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Thanks. Maybe I can consider store the db in /opt.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…