Code Monkey home page Code Monkey logo

lucy-on-ec2's Introduction

Launch Lucee in EC2 in one step

So, you want to launch a new server instance in Amazon AWS's EC2 service on linux. The script in this repo will install and configure Lucee for you automatically.

Install

Using the Amazon Console

  • Click on Launch Instance and select a new Amazon Linux AMI, then select an instance type.

  • In the Configure Instance Details section, expand the Advanced Details section. Paste the following text in the user data text box:

     #include
     https://raw.githubusercontent.com/amaroom/Lucy-On-EC2/master/boot_to_lucee.sh
    
  • Complete the rest of the startup options.

That's it. Your new Linux instance will launch and install Tomcat8 and Lucee. After a few minute you can browse to http://<server-ip>:8080/ to see a welcome page. From this point, you can use git to bring in your ColdFusion code, or drop a WAR file with your CF code ( in the path /usr/share/tomcat8/webapps ), or just add files to the ROOT folder.

If you're using the AWS CLI, can pass this with the --user-data argument.

What it does

This script does the following:

  • Update the instance with the latest patches.
  • Installs Tomcat 8, Tomcat Native Libraries and GIT.
  • Downloads Lucee Jars and places them in the Tomcat folder. (Lucee 4.5.2.018)
  • Modifies catalina.properties to add the Lucee jars to the common loader path.
  • Modifies the global Tomcat Web.xml file to include the Lucee Servlet's and their mappings.
  • Generate's simple "Hello" index.cfm file and places it in the ROOT web context.
  • Sets proper permissions on files and folders.
  • Sets Tomcat 8 to start on boot as a service.
  • Reboots instance when it's done.

lucy-on-ec2's People

Contributors

amaroom avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.