Unsere Setup-Routine für eine Rails-App mit Nginx, Passenger, rvm auf einen Host Europe-VPS mit Ubuntu 10.4.
apt-get update
apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |
| #!/bin/bash | |
| # | |
| # PostgreSQL Backup Script Ver 1.0 | |
| # http://autopgsqlbackup.frozenpc.net | |
| # Copyright (c) 2005 Aaron Axelsen <[email protected]> | |
| # | |
| # This script is based of the AutoMySQLBackup Script Ver 2.2 | |
| # It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
| # | |
| # The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
| $(document) | |
| .on('ajax:beforeSend', '#scheduling_options_form', function() { | |
| console.log('beforeSend'); | |
| $('.ajax-loader').show(); | |
| }) | |
| .on('ajax:success', '#scheduling_options_form', function(data, status, xhr) { | |
| console.log('Success'); | |
| $('.ajax-loader').hide(); | |
| }) | |
| .on('ajax:error', '#scheduling_options_form', function(data, status, xhr) { |
| #!/usr/bin/python2 | |
| # setup: pip install requests beautifulsoup4 | |
| from decimal import Decimal | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import sys | |
| # Session setup |