in Education by
When packaging the application using warbler, the symbolic links are lost and the actual contents the symlink points to are packaged as part of the WAR. In my case, I have a symlink from public/images/upload to /var/myproject/upload. After I deploy the war in tomcat, in the exploded folder public/images/upload has all the contents of /var/myproject/upload copied to it instead of linking to the folder. UPDATE: My questions is "will warbler retain the symbolic links inside the project when deployed as a war?" Environment Info: jruby 1.6.2 (ruby-1.8.7-p330) | warbler 1.3.1 | Cent OS 5.5 | Java SE "1.6.0_26" JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I had the same problem. I solved it by creating global (@@) variables for each path that I used in the environment files. For example my production.rb file contains @@rejectedPage="/pathto/page/in/tomcat", while in my development.rb file I set @@rejectedPage="/the/normal/path". This way I can easily switch from my development environment to my production environment.

Related questions

0 votes
    I would like to use assertions in my cucumber tests such as this: Then /^I am taken to the page ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 25, 2022 in Education by JackTerrance
0 votes
    Using your creative ideas draw the 7C's of Communication and 5C's of article. Both the ideas should not ... your drawings properly Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    How can we create a symbolic link to file? (a) createLink() (b) createSymLink() (c) createSymbolicLink() ( ... & Miscellaneous of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    How can we create a symbolic link to file? (a) createLink() (b) createSymLink() (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    I am receiving a message with SAML security ticket in the header. This ticket must be sent in outgoing ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I have an XML with Text elements that can include tagged text and depending on the elements attribute value ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    Unlike writing out a table or CSV file, dump() and dput() preserve the ______ so that another user ... Operations of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I have a problem, I build a very simple javascript search for postal codes. I am using JS Numbers because I want to check if ... to the max and min. value >= splitZips[0] && value...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    I have a problem, I build a very simple javascript search for postal codes. I am using JS Numbers because I want to check if ... to the max and min. value >= splitZips[0] && value...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    __________ contains a huge proxy DB which users can use to protect their online privacy and preserve their ... -Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    A(n) _________ can be used to preserve the integrity of a document or a message. (a) Message ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    What is the importance of preserve checkbox in blue prism?...
asked Nov 6, 2020 in Technology by JackTerrance
0 votes
    What are the Methods to move data through a network of links and switches? A. Packet switching and Line ... switching and Circuit switching D. Line switching and bit switching...
asked Jan 6, 2023 in Education by JackTerrance
0 votes
    Actually I am checking the excel values whether they are displayed on the web page Mouse hover menu. The menu includes titles and the ... ")); int submenuui = 0; for (int a=1;a...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I am developing an addon for Gmail using AppsScript. One of the use cases of my addon is to retrieve ... .getAttachments() API which returns only the gmail attachments (...
asked May 4, 2022 in Education by JackTerrance
...