Quantcast

Deploy to different environments

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Deploy to different environments

RameshBhat
Hi,

I am trying to publish forms my local machine to my staging machine.

Following are the steps I have tried:

Added the following in local server (properties-local.xml)

<property as="xs:string" name="oxf.fr.home.remote-servers">
  [
    {
      "label": "Staging",
      "url":   "http://staging.example.org:8080/orbeon"
    },
    {
      "label": "Production",
      "url":   "http://prod.example.org:9090/orbeon"
    }
  ]
</property>


On the remote server , when we extract the orbeon-auth.war , do we have to replace the web.xml since there is already a web.xml from orbeon.war.

On the remote server , have added an entry in properties.xml file as below:

<property
  as="xs:anyURI"
  processor-name="oxf:page-flow"
  name="authorizer"
  value="/orbeon-auth"/>

On the remote server : modified the tomcat-users as below:
<role rolename="orbeon-service"/>
<user username="orbeon" password="orbeon" roles="orbeon-service"/>


Also do we need to configure orbeon-service as a local service on the machine.
Regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Deploy to different environments

Alessandro  Vernet
Administrator
Hi Ramesh,

The orbeon-auth.war is deployed as a separate web app, at the same level as orbeon.war, e.g.:

- orbeon-auth.war deployed on /orbeon-auth
- orbeon.war deployed on /orbeon

So you won't be "merging" the web.xml of orbeon.war and orbeon-auth.war.

And on the local server, you don't have any setup for the `orbeon-service` role. Instead, from the Form Runner home page, when publishing a form to a remote server, you log into that server using a user that has this role, which in your case would be orbeon/orbeon. Does this make sense?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Deploy to different environments

RameshBhat
Hi,

I have tried this approach as well. Placed the orbeon-auth.war at the same root level of Orbeon.

Configured the properties.xml to point to two different environments.

When I try to navigate to the /orbeon/fr services page it asks for a UserName/Password combination. As I key in the credentials the pop up just refreshes in the UI and no re-direction happens (Either to a non authorized page or to a authorized page).

The user name and password are configured in tomcat-users.xml for the orbeon-service role.

I do not see any erros or authorization issues in the log files either.

Regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Deploy to different environments

Alessandro  Vernet
Administrator
To make sure I understand this properly, could you share with us a screenshot of the place where you enter login/password when going to /orbeon/fr/?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Loading...