项目作者: ulizama

项目描述 :
A collection of cookbooks and recipes to easily deploy servers with Dancer Projects
高级语言: Ruby
项目地址: git://github.com/ulizama/Chef-Dancer.git
创建时间: 2016-11-02T22:23:49Z
项目社区:https://github.com/ulizama/Chef-Dancer

开源协议:

下载


Chef Dancer

This repository contains the basic cookbooks and recipes to configure a server instance running a Dancer project. The project has been tested on Ubuntu boxes successfully.

The server will be configured using Starman, daemontools and nginx.

The Dancer app will run on port 3000 which will be accessed using a proxy on nginx.

Deployment

Currently you can either do a development deployment through a Vagrant VM or production deployment to an EC2 instance, and you can look at the details on how to do each deployment on their docs:

The Recipes

The main cookbook that does all the work is the perldancer cookbook. Which will go through each recipe to setup the server. You can modify any recipe to further customize it to your needs.

default recipe

This will start up the package manager and install some of the basic packages required.

git recipe

This will connect to Github to create a new deploy key and then clone the repository into the server.

perl recipe

The requested version of perl will be installed using perlbrew. It will install all the additional packages to be able to have MySQL support, and using cpanm it will install the module list.

daemontools recipe

The recipe will install daemontools as the service manager and will start up Dancer.

nginx recipe

Install ngninx on the server and get it ready to process requests through the Dancer proxy.

TODO

  • Sync local directory with VM in development

License

  1. Copyright 2015 Uriel Lizama
  2.  
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6.  
  7. http://www.apache.org/licenses/LICENSE-2.0
  8.  
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.