Deploy the ROR project in linux

Source: Internet
Author: User
Deploy the ROR project in linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. The client asked me to remotely help him deploy the project to the server. I didn't give anything, so I had to find a solution and deploy it while querying data.
First, write down the code.
[Yzhang @ localhost ~] $ Mkdir trust
[Yzhang @ localhost ~] $ Cd trust
[Yzhang @ localhost trust] $ svn checkout http ://........
User name:
Password:
[Yzhang @ localhost trust] $ cd trunk
[Yzhang @ localhost trunk] $ ls
App config doc lib public README sendmails. rb tmp
Components db document log Rakefile script test vendor
[Yzhang @ localhost trunk] $ vi config/database. yml

From the command line mode to the last line mode, use ":", and then use wq to save the changes and release them.

[Yzhang @ localhost trunk] $ vi config/database. yml
[Yzhang @ localhost trunk] $ pwd
View the current directory path
/Home/yzhang/trust/trunk
[Yzhang @ localhost trunk] $ mongrel_rails cluster: configure-e development-p 8090-N 4-c/home/yzhang/trust/trunk-a 127.0.0.1
Writing configuration file to config/mongrel_cluster.yml.
[Yzhang @ localhost trunk] $ mongrel_rails cluster: start
Starting port 8090
Starting port 8091
Starting port 8092
Starting port 8093
[Yzhang @ localhost trunk] $ pwd
/Home/yzhang/trust/trunk
[Yzhang @ localhost trunk] $ mysql-u wwsr_user-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 57
Server version: 5.0.45 Source distribution

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

Mysql> create database trust_develop
->;
Query OK, 1 row affected (0.01 sec)

Mysql> grant select, INSERT, UPDATE, DELETE, CREATE, DROP
-> ON trust_develop .*
-> TO username @ localhost
-> Identified by 'Password ';
Query OK, 0 rows affected (0.09 sec)

Mysql> show databases;
+ -------------------- +
| Database |
+ -------------------- +
| Information_schema |
| Test |
| Trust_develop |
+ -------------------- +
3 rows in set (0.00 sec)

Mysql> use trust_develop
Database changed
Mysql> source/home/yzhang/trust/tags/trust. SQL restore the database.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.