arbetsformedlingen_ads_pusher

所属分类:collect
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2021-11-29 08:33:26
上 传 者sh-1993
说明:  无服务器Arbetsformedlingen广告推进器,
(Serverless Arbetsformedlingen Ads Pusher,)

文件列表:
Gemfile (276, 2018-12-09)
Gemfile.lock (2111, 2018-12-09)
LICENSE.txt (1089, 2018-12-09)
app/ (0, 2018-12-09)
app/config.ru (173, 2018-12-09)
app/server.rb (2435, 2018-12-09)
app/views/ (0, 2018-12-09)
app/views/index.erb (347, 2018-12-09)
app/views/layout.erb (108, 2018-12-09)
buildspec.yml (479, 2018-12-09)
lambda.rb (2647, 2018-12-09)
pipeline-cfn.yaml (8941, 2018-12-09)
spec/ (0, 2018-12-09)
spec/server_spec.rb (509, 2018-12-09)
template.yaml (1888, 2018-12-09)

## Running Ruby Sinatra on AWS Lambda Arbetsformedlingen Pusher Sinatra web app deployed on AWS Lambda. It is tested with Ruby 2.5.x. :warning: Experimental! What's Here ----------- This sample includes: * README.md - this file * Gemfile - Gem requirements for the sample application * app/config.ru - this file contains configuration for Rack middleware * app/server.rb - this file contains the code for the sample service * app/views - this directory has the template files * spec/ - this directory contains the RSpec unit tests for the sample application * template.yaml - this file contains the description of AWS resources used by AWS CloudFormation to deploy your serverless application * pipeline-cfn.yaml - this is the CloudFormation template to create the CodePipeline and the other needed resources. You need to fork the repo if you use a personal GitHub token * buildspec.yml - this file contains build commands used by AWS CodeBuild Getting Started --------------- These directions assume you already have Ruby 2.5.x and [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/installing.html) installed and configured. Please fork the repo and create an [access token](https://github.com/settings/tokens/new) if you want to create a [CodePipeline](https://aws.amazon.com/codepipeline/) to deploy the app. The pipeline-cfn.yaml template can be used to automate the process. To work on the sample code, you'll need to clone your project's repository to your local computer. If you haven't, do that first. You can find a guide [here](https://help.github.com/articles/cloning-a-repository/). 1. Install bundle $ gem install bundler 2. Install Ruby dependencies for this service $ bundle install 3. Download the Gems to the local vendor directory $ bundle install --deployment 4. Create the deployment package (note: if you don't have a S3 bucket, you need to create one): $ aws cloudformation package \ --template-file template.yaml \ --output-template-file serverless-output.yaml \ --s3-bucket { your-bucket-name } Alternatively, if you have [SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) installed, you can run the following command which will do the same $ sam package \ --template-file template.yaml \ --output-template-file serverless-output.yaml \ --s3-bucket { your-bucket-name } 5. Deploying your application $ aws cloudformation deploy --template-file serverless-output.yaml \ --stack-name { your-stack-name } \ --capabilities CAPABILITY_IAM Or use SAM CLI $ sam deploy \ --template-file serverless-output.yaml \ --stack-name { your-stack-name } \ --capabilities CAPABILITY_IAM How Do I Add Template Resources to My Project? ------------------ To add AWS resources to your project, you'll need to edit the `template.yaml` file in your project's repository. You may also need to modify permissions for your project's IAM roles. After you push the template change, AWS CloudFormation provisions the resources for you.

近期下载者

相关文件


收藏者