This file is a log of everything I've encountered when trying to migrate a Node.js, Elastic Beanstalk application from the Amazon Linux platform to the Amazon Liunx 2 platform. Here's why you should migrate:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('bluebird') | |
var _ = require('lodash') | |
var fs = require('fs') | |
var contentful = require('contentful') | |
var client = contentful.createClient({ | |
space: '0eybfmw2qkbf', | |
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, | |
host: process.env.CONTENTFUL_HOST | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Sequelize = require('sequelize'); | |
var DataTypes = Sequelize; | |
sequelize = new Sequelize('mysql://root@localhost/29165644', {}); | |
var Module = sequelize.define('module', { | |
id: DataTypes.INTEGER, | |
name: DataTypes.STRING, | |
description: DataTypes.STRING, | |
category_id: DataTypes.STRING, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ddclient.orig 2013-09-26 01:06:12.399990673 +0100 | |
+++ ddclient 2013-09-26 06:25:36.768189452 +0100 | |
@@ -13,12 +13,17 @@ | |
# Support for multiple IP numbers added by | |
# Astaro AG, Ingo Schwarze <ischwarze-OOs/4mkCeqbQT0dZR+AlfA@public.gmane.org> September 16, 2008 | |
# | |
+# Modified to work with Cloudflare by Robert Ian Hawdon 2012-07-16: http://robertianhawdon.me.uk/ | |
+# | |
+# Further modified to work with Cloudflare by Peter Roberts 2013-9-26, 2014-6-22: blog.peter-r.co.uk | |
+# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc/init.d/metabase | |
### BEGIN INIT INFO | |
# Provides: Metabase | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Metabase analytics and intelligence platform | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xbD08E418EB33ecC56b2234d860397f77143cD2F3 |
Setting project:
gcloud config set project tidy-bindery-110323
Creating a cluster:
gcloud container clusters create web --num-nodes=1 --machine-type=g1-small --zone=us-east1-b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return request({ | |
method: 'POST', | |
url: 'https://api.fastly.com/service/' + main.SERVICE_ID + '/version/' + this.number + '/vcl', | |
headers: { | |
'Fastly-Key': main.API_KEY | |
}, | |
form: { | |
name: 'gulp-fastly-uploaded-vcl', | |
file: encodeURIComponent(String(file.contents)) | |
} |
NewerOlder