2014-11-06 2 views
-1

Nginx와 Unicorn을 사용하여 Ubuntu 14.04에서 Ruby on Rails를 자동으로 설정하는 디지털 바다 방울이 있습니다. github (https://github.com/harrystech/prelaunchr)에서 실행중인 Ruby on Rails 애플리케이션을 얻으려고하는데 파일을 복사하는 것만으로는 작동하지 않는 것 같습니다. 나는 레일 전문가가 아니므로 여러분이 줄 수있는 도움이 될 것입니다. github 프로젝트가 완성 된 작업 응용 프로그램 인 것 같습니다. 디지털 바다 물방울에서 작업하는 방법을 알아내는 것만으로도 충분합니다. 나는 이것에 대한 어떤 가이드도 찾을 수 없다!디지털 오션 방울에 Github Ruby On Rails 프로젝트를 설치하는 방법

편집 : 디지털 바다에서 도움을 받아 이것을 알아 냈습니다! 다음 레일 물방울에 루비를 설치 한 다음 물방울에 SSH 및 수행

rm -rf /home/rails/* 
cd /home/rails/ 
git clone https://github.com/harrystech/prelaunchr.git . 
nano Gemfile # Add "gem 'mysql2'" 
nano config/database.yml # Change 'postgres' to 'mysql2' and add user/pass for the database 
gem list | cut -d" " -f1 | xargs gem uninstall -aIx # Uninstall gems that might conflict 
bundle install 
bundle exec rake db:create db:schema:load db:seed 
nano config/environments/production.rb # Set `config.assets.compile = true` 
chown -R rails:www-data * 
service unicorn restart 
exec bundle rails s -d 

앱은 지금과 yourip 실행해야한다 : 3000 ~이 우!

+0

그 중 어느 쪽도 실제로 github에서 설치하는 방법에 들어 가지 않습니다 ... – Alteredorange

답변

0

나는 디지털 바다에서 도움을 받아 이것을 알아 냈습니다! 다음 레일 물방울에 루비를 설치 한 다음 물방울에 SSH 및 수행

rm -rf /home/rails/* 
cd /home/rails/ 
git clone https://github.com/harrystech/prelaunchr.git . 
nano Gemfile # Add "gem 'mysql2'" 
nano config/database.yml # Change 'postgres' to 'mysql2' and add user/pass for the database 
gem list | cut -d" " -f1 | xargs gem uninstall -aIx # Uninstall gems that might conflict 
bundle install 
bundle exec rake db:create db:schema:load db:seed 
nano config/environments/production.rb # Set `config.assets.compile = true` 
chown -R rails:www-data * 
service unicorn restart 
exec bundle rails s -d 

앱은 지금과 yourip 실행해야한다 : 3000 ~이 우!