Comments (4)
please check vendor directory, and remove the like related with the error @D7na
from spree_static_content.
Hello, is there a procedure to un-install the gem? Do we need to manually remove tables from database, or remove some .rb files? Thanks.
from spree_static_content.
We need a way of deleting this gem. It makes deployments take about five times as long and it leaves behind a bunch of things that destroy migrations.
from spree_static_content.
To remove the Gem you will need to reverse some steps.
You can see what the current install task does here:
https://github.com/spree-contrib/spree_static_content/blob/master/lib/generators/spree_static_content/install/install_generator.rb
If you can find the commit when you added the gem that may be the best indicator. It's possible you may have updated the gem and more is required, than the initial commit.
Removing the Spree Static Content Plugin
- Remove the gem from
Gemfile
- Run
bundler
to update theGemfile.lock
- Remove
*= require spree/frontend/spree_static_content
from:vendor/assets/stylesheets/spree/frontend/all.css
- Create a new migration
bin/rails g migration RemoveSpreeStaticContentPlugin
- Add the following to the migration
class RemoveSpreeStaticContentPlugin < ActiveRecord::Migration[6.0]
def up
drop_table :spree_pages
drop_table :spree_pages_stores
end
def down
raise ActiveRecord::IrreversibleMigration
end
end
- Run migrations
bin/rails db:migrate
, make sure everything still works, commit, push up. NOTE: this is irreversible as the code shows above.
Note:
Currently these are the two tables that are being created.
You could add this to a fresh project to see what is added, or find the commit that you added the plugin to your project and what changed at the time; it's possible updates changed it from there out.
You can also see what migrations were ran here ideally too:
https://github.com/spree-contrib/spree_static_content/tree/master/db/migrate
Note to self for private repo, commit that added the plugin:
https://github.com/Utiliti-USA/utiliti-rails-spree-v4/commit/38b31fe1e02319ae99eb57129f2add050b0249fd
from spree_static_content.
Related Issues (20)
- ActiveRecord::StatementInvalid (Could not find table 'spree_pages')
- Error Installing
- Is this working in Spree 3.2.0 HOT 2
- Please specify the Rails release the migration was written for in gem 'spree_static_content', github: 'spree-contrib/spree_static_content' HOT 2
- Readme is not up to date HOT 2
- Problem with Translations HOT 2
- Mysql2::Error: Table 'development.spree_taxonomy_translations' doesn't exist: SHOW FULL FIELDS FROM `spree_taxonomy_translations` HOT 3
- NoMethodError in Spree::Home#index HOT 5
- Meta Description and Meta Keywords Not Being Applied HOT 1
- methods `find_by` stop working HOT 5
- How do I get the Pages menu item in the admin
- Problems with translations, locale used in slug
- Problems with Spree 4.0 HOT 1
- Table 'myproject_development.spree_page_translations' doesn't exist HOT 2
- Installation failure with a `Sprockets::Railtie::ManifestNeededError` HOT 1
- I can't translate pages HOT 3
- When trying Foreign link (URL) it doesnt work
- Links in footer doesn't work HOT 1
- after intalling the extension on spree nothing shows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_static_content.