Skip to content

Commit e23b61c

Browse files
committed
Add sprockets manifest before running rails commands
Due to a bug in sprockets-rails[1] we need to manually add the sprockets manifest into the generated rails app before running any rails commands inside the rails app folder. [1](rails/sprockets-rails#546)
1 parent 34b20d8 commit e23b61c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ To add Solidus, begin with a newly created Rails application with its database.
9090
rails new my_store
9191
```
9292

93+
> [!CAUTION]
94+
> Due to [a bug in `sprockets-rails`](https://github.com/rails/sprockets-rails/pull/546) we need to manually add the sprockets manifest into the generated rails app **before** running any rails commands inside the rails app folder.
95+
96+
```bash
97+
mkdir -p my_store/app/assets/config
98+
cat <<MANIFEST > my_store/app/assets/config/manifest.js
99+
//= link_tree ../images
100+
//= link_directory ../javascripts .js
101+
//= link_directory ../stylesheets .css
102+
MANIFEST
103+
```
104+
93105
### Installing Solidus
94106

95107
In your application's root folder run:
@@ -99,6 +111,9 @@ bundle add solidus
99111
bin/rails g solidus:install
100112
```
101113

114+
> [!NOTE]
115+
> Please make sure to generate the sprockets manifest before running the `solidus:install` generator.
116+
102117
And follow the prompt's instructions.
103118
### Accessing Solidus Store
104119

0 commit comments

Comments
 (0)