How to deploy a Python Web application: record a complete Heroku deployment process
0. Select Heroku Cloud Platform
With the wave of cloud computing, the domestic cloud services can be described as diverse, although the price is not high, but can truly provide permanent free use, even if there are some restrictions, it does not seem to find.
To meet the requireme
1, Purpose: Use Heroku to deploy the development environment to the production environment. Heroku is dedicated to deploying rails and other Web applications, and the process of deploying rails applications is straightforward-as long as the source code is incorporated into t
remote server, which is abbreviated as origin. (Hypothesis) You may have configured many remote servers.
$ Git remote-vOrigin git@heroku.com: Sample-Project.git)Origin git@heroku.com: Sample-Project.git (push)
3. Deploy your code
Use git push to deploy your code.
$ Git push origin masterInitializing repository, done.Counting objects: 11, done.Delta compression using up to 8 threads.Compressing objects: 100
How to automatically deploy Ruby on Rails in Docker: dockerrails
Basic Rails Applications
Now let's start a basic Rails application. For better display, I use Ruby 2.2.0 and Rails 4.1.1.
Run on the terminal:
$ rvm use 2.2.0 $ rails
Because Ruby 1.9.3 uses psych to parse Yaml (unlike Ruby 1.8.7), Psych needs libyaml support.
First you need to update the relevant components:
Yum-y install make gcc openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel Evel Ncurses-devel sqlite3-devel mysql-devel httpd-devel wget
1. Install Libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$./configure--prefix=/usr/local
$ make
$ make install2. I
Prerequisites:
I cover all these operations on centos 6.4 and with root, So if you encounter some privilege problem, try sudo.
And, if using Ubuntu, you needn't worry about SELinux.1. Install essentical Library
Yum update
Yum install GCC g ++ make automake Autoconf curl-devel OpenSSL-devel zlib-develhttpd-devel Apr-util-devel SQLite-devel gcc-C ++
# Then compile and install nodejs
Wget http://nodejs.org/dist/v0.10.7/node-v0.10.7.tar.gz
#........
2. Install libyaml (needed by ruby)
Wget http://p
Configure Ruby on Rails in CentOS and deploy RedmineGitMake sure that the dependent packages are installed:[Plain] view plaincopy
Yuminstallcurl
Yuminstallcurl-devel
Yuminstallzlib-devel
Yuminstallopenssl-devel
Yuminstallperl
Yuminstallcpio
Yuminstallexpat-devel
Yuminstallgettext-devel
Download the git package and compile and install it:
[Plain] view plaincopy
Wgethttp: // www.codemonkey.org. u
Linux Deploy Rails3 with Ruby1.9.2 (5) Fix the Error Messages
1. Sprockets: Environment # path is deprecatedWe have 2 ways to solve this, it is harmless warning messageOne way is to upgrade our rails from rc5 to rc8.> Gem install rails-v = 3.1.0.rc8> Vi GemfileGem 'rails ',
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.