aeric Expert Licensed User Longtime User Oct 15, 2020 #1 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
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.
tchart Well-Known Member Licensed User Longtime User Oct 15, 2020 #2 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
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.
tchart Well-Known Member Licensed User Longtime User Oct 15, 2020 #3 If you read something like this article your app should probably be in /usr but the article suggests this should be read only. The Linux Directory Structure, Explained If you're coming from Windows, the Linux file system structure can seem particularly alien. www.google.com Upvote 0
If you read something like this article your app should probably be in /usr but the article suggests this should be read only. The Linux Directory Structure, Explained If you're coming from Windows, the Linux file system structure can seem particularly alien. www.google.com
derez Expert Licensed User Longtime User Oct 15, 2020 #4 In the second location, change the properties of the DB file to read and write. If you are not allowed - use nemo. Upvote 0
In the second location, change the properties of the DB file to read and write. If you are not allowed - use nemo.
aeric Expert Licensed User Longtime User Oct 15, 2020 #5 tchart said: If you read something like this article your app should probably be in /usr but the article suggests this should be read only. The Linux Directory Structure, Explained If you're coming from Windows, the Linux file system structure can seem particularly alien. www.google.com Click to expand... Thanks. Maybe I can consider store the db in /opt. Upvote 0
tchart said: If you read something like this article your app should probably be in /usr but the article suggests this should be read only. The Linux Directory Structure, Explained If you're coming from Windows, the Linux file system structure can seem particularly alien. www.google.com Click to expand... Thanks. Maybe I can consider store the db in /opt.