Re: [Lift] Deploying Lift app
What OS is on the server? - Jeppe Nejsum Madsen wrote: Mads Hartmann writes: > Hello everyone > > I can't quite figure out how to deploy my lift app and was hoping one > of you could point me in the right direction. For fun i uploaded my > entire project (uncompiled) to the server and ran mvn jetty:run - this > worked fine but as soon as i killed my ssh connection the jetty server > stopped. > > I would be very grateful for a bullet-point explanation of the process > - I understand you can create a .war file and deploy that but I can't > seem to figure out how - maybe it's because I'm a bit slow today :) Assuming you have full control of your server: The container (Jetty) should be installed on the server and integrated with the server startup/shutdown cycle. Then (locally) mvn package to create the war file. Move the war file to the server's app dir (eg /usr/share/jetty6/webapps) While a bit dated, here's how you can automate all of these steps (including bootstrapping the server :-) http://jeppenejsum.wordpress.com/2009/05/03/ec2-continuous-deployment-hello-world/ /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Deploying Lift app
Mads Hartmann writes: > Hello everyone > > I can't quite figure out how to deploy my lift app and was hoping one > of you could point me in the right direction. For fun i uploaded my > entire project (uncompiled) to the server and ran mvn jetty:run - this > worked fine but as soon as i killed my ssh connection the jetty server > stopped. > > I would be very grateful for a bullet-point explanation of the process > - I understand you can create a .war file and deploy that but I can't > seem to figure out how - maybe it's because I'm a bit slow today :) Assuming you have full control of your server: The container (Jetty) should be installed on the server and integrated with the server startup/shutdown cycle. Then (locally) mvn package to create the war file. Move the war file to the server's app dir (eg /usr/share/jetty6/webapps) While a bit dated, here's how you can automate all of these steps (including bootstrapping the server :-) http://jeppenejsum.wordpress.com/2009/05/03/ec2-continuous-deployment-hello-world/ /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Deploying Lift app
Download: http://github.com/dpp/lift-samples/blob/master/jetty_instance.tgz tar -xzvf jetty_instance.tgz Put your WAR file in jetty_instance/webapps/root.war run start_prod.sh to start-up in production mode. Change base_port to specify the port your app will run on. Change ram_size to specify the maximum heap size. On Wed, Feb 10, 2010 at 8:56 AM, Mads Hartmann wrote: > Hello everyone > > I can't quite figure out how to deploy my lift app and was hoping one > of you could point me in the right direction. For fun i uploaded my > entire project (uncompiled) to the server and ran mvn jetty:run - this > worked fine but as soon as i killed my ssh connection the jetty server > stopped. > > I would be very grateful for a bullet-point explanation of the process > - I understand you can create a .war file and deploy that but I can't > seem to figure out how - maybe it's because I'm a bit slow today :) > > Thanks, > Mads Hartmann Jensen > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Deploying Lift app
That was refreshingly easy :) Thanks a lot Mads Hartmann On 10/02/2010, at 18.00, Adam Warski wrote: >> I can't quite figure out how to deploy my lift app and was hoping one >> of you could point me in the right direction. For fun i uploaded my >> entire project (uncompiled) to the server and ran mvn jetty:run - this >> worked fine but as soon as i killed my ssh connection the jetty server >> stopped. > > I think it should be enough to run mvn jetty:run in the background. > > My start-server.sh script: > > #!/bin/bash > mvn jetty:run >log.out 2>&1 & > > (puts all logs in log.out for further inspection) > > -- > Adam Warski > http://www.warski.org > http://www.softwaremill.eu > > > > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Deploying Lift app
> I can't quite figure out how to deploy my lift app and was hoping one > of you could point me in the right direction. For fun i uploaded my > entire project (uncompiled) to the server and ran mvn jetty:run - this > worked fine but as soon as i killed my ssh connection the jetty server > stopped. I think it should be enough to run mvn jetty:run in the background. My start-server.sh script: #!/bin/bash mvn jetty:run >log.out 2>&1 & (puts all logs in log.out for further inspection) -- Adam Warski http://www.warski.org http://www.softwaremill.eu -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Deploying Lift app
Hello everyone I can't quite figure out how to deploy my lift app and was hoping one of you could point me in the right direction. For fun i uploaded my entire project (uncompiled) to the server and ran mvn jetty:run - this worked fine but as soon as i killed my ssh connection the jetty server stopped. I would be very grateful for a bullet-point explanation of the process - I understand you can create a .war file and deploy that but I can't seem to figure out how - maybe it's because I'm a bit slow today :) Thanks, Mads Hartmann Jensen -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.