在Ubuntu 14.10上部署Ruby

时间:2015-04-06 16:33:02

标签: ruby-on-rails ruby linux ubuntu

我是编程的诺言,我开始使用go rails教程安装Ruby。

https://gorails.com/setup/ubuntu/14.10#rails 我到了最后阶段,但它没有工作, 所以我用这个文本制作了一个.rb文件并尝试在终端上运行它,没有用。

任何人都知道我应该做什么吗?

#### If you want to use SQLite (not recommended)
rails new myapp

#### If you want to use MySQL
rails new myapp -d mysql

#### If you want to use Postgres
# Note that this will expect a postgres user with the same username
# as your app, you may need to edit config/database.yml to match the
# user you created earlier
rails new myapp -d postgresql

# Move into the application directory
cd myapp

# If you setup MySQL or Postgres with a username/password, modify the
# config/database.yml file to contain the username/password that you specified

# Create the database
rake db:create

rails server

You can now visit http://localhost:3000 to view your new website!

Now that you've got your machine setup, it's time to start building some Rails applications.

If you received an error that said Access denied for user 'root'@'localhost' (using password: NO) then you need to update your config/database.yml file to match the database username and password.
We're sharing everything we know
about how to write great quality code

Join the GoRails mailing list to learn more about what great code looks like, why it is great, and how you can write great code yourself that you will enjoy working with.

0 个答案:

没有答案