Essentially I have a basic app that I would like to use as base for my other projects.
基本上我有一个基本的应用程序,我想用作我的其他项目的基础。
I ran git clone git@site.org:user/app.git newfolder
我运行了git clone git@site.org:user / app.git newfolder
But when I run my rails app rails s
I get the following error:
但是当我运行我的rails app rails时,我收到以下错误:
Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue.
So I run rake db:migrate
and start the app again, getting the following error:
所以我运行rake db:migrate并再次启动应用程序,收到以下错误:
I have a sneaking suspicion that it has something to do with the app name as asked in this question but I noticed the solution was provided for Rails 3 and the GitHub project hasn't been updated in two years.
我有一个潜在的怀疑,它与此问题中提到的应用程序名称有关,但我注意到解决方案是为Rails 3提供的,而GitHub项目在两年内没有更新。
Essentially, I think I have a solution (renaming the app) but I don't know how to do that. However, I may be wrong and I don't know why I am getting this error?
从本质上讲,我认为我有一个解决方案(重命名应用程序),但我不知道该怎么做。但是,我可能错了,我不知道为什么会收到此错误?
1 个解决方案
#1
1
You are getting this error because, one of the css files you are requiring in your application.css is requiring application.css. Go through all the file in your app/assets/stylesheets and make sure that none of the file that is required in application.css is requiring application.css.
您收到此错误的原因是,您在application.css中需要的一个css文件需要application.css。浏览app / assets / stylesheets中的所有文件,确保application.css中所需的文件都不需要application.css。
#1
1
You are getting this error because, one of the css files you are requiring in your application.css is requiring application.css. Go through all the file in your app/assets/stylesheets and make sure that none of the file that is required in application.css is requiring application.css.
您收到此错误的原因是,您在application.css中需要的一个css文件需要application.css。浏览app / assets / stylesheets中的所有文件,确保application.css中所需的文件都不需要application.css。