与设计师一起开发 Rails 应用程序

发布于 2024-12-21 17:23:05 字数 1431 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷心人i 2024-12-28 17:23:05

我总是制作 bash 脚本来安装和更新我的 Rails 项目。

所以我可能有这个 ./script/install 脚本:

#!/bin/bash
set -e # stop the script as soon as an error occurs

echo "--- Making sure bundler is installed"
gem which bundler &> /dev/null || gem install bundler --no-ri --no-rdoc

echo "--- Installing gems"
bundle check || bundle install

echo "--- Setting up the database"
bundle exec rake db:setup db:test:prepare

echo "--- Running tests to see if everying installed correctly"
bundle exec rspec spec
bundle exec cucumber features --profile all

echo "--- Everything installed correctly!"
echo "--- Run `rails server` to start the server!"

I always make bash scripts to install and update my Rails projects.

So I might have this ./script/install script:

#!/bin/bash
set -e # stop the script as soon as an error occurs

echo "--- Making sure bundler is installed"
gem which bundler &> /dev/null || gem install bundler --no-ri --no-rdoc

echo "--- Installing gems"
bundle check || bundle install

echo "--- Setting up the database"
bundle exec rake db:setup db:test:prepare

echo "--- Running tests to see if everying installed correctly"
bundle exec rspec spec
bundle exec cucumber features --profile all

echo "--- Everything installed correctly!"
echo "--- Run `rails server` to start the server!"
深府石板幽径 2024-12-28 17:23:05

最难的部分确实是 vagrant 的开发环境。
你在 vagrant 中设置了所有内容,然后他下载了它,然后就完成了。

rails s

他完成了:

http://railscasts.com/episodes/292-virtual-machines -with-vagrant

The hardest part is really the development environment for such there is vagrant.
You setup everything in vagrant, then he downloads it, and does.

rails s

he is done:

http://railscasts.com/episodes/292-virtual-machines-with-vagrant

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文