EC2
+ RDS
+ EB
,使用 Elastic Beanstalk 部署應用程式
- 作業系統 macOS Sierra 10.12.3
- Ruby 2.3
- Rails 5.0.1
- MySQL 5.7.16
# `ERROR: Error installing nokogiri: | |
# ERROR: Failed to build gem native extension. | |
# | |
# current directory: /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.0/ext/nokogiri | |
# /usr/local/var/rbenv/versions/2.3.1/bin/ruby -r ./siteconf20170103-68488-r71c9j.rb extconf.rb --with-xml=/usr/local/Cellar/libxml2/ --use-system-libraries | |
# checking if the C compiler accepts ... yes | |
# checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no | |
# Building nokogiri using system libraries. | |
# ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. | |
# *** extconf.rb failed *** |
import BaseHTTPServer | |
class Handler(BaseHTTPServer.BaseHTTPRequestHandler): | |
mappings = {'/' : {'GET' : 'test'}} | |
def main_handler(self, method='GET'): | |
# get request url (without url params) and remove trailing / | |
request_url = self.path.split('?')[0].rstrip('/') |