solidus 2.9.6 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +139 -70
- metadata +17 -19
- data/lib/sandbox.sh +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d02f9314591d4426d45f341ae6db571bd2fb9eb8154b8028c65699201623d6ec
|
4
|
+
data.tar.gz: f0597220c1abca6503e8fbb757d8707b858d0b0bd8def1ea585ef4b3f951eee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef106584c3e6715115b06dd0ec68cfb787b3777e839270e07c91f65419d8cf6a55250f3709d507cc7d3c30a1e25e9b04674a16b398ee02a5ecd6272200f7c16
|
7
|
+
data.tar.gz: def301fad926f65fc9822d2d092e6049b1d039cb238cea393d231623aad5d9122ff5a09c955079c1d78b5867e496d4ccea9e4c4a8f32f11a42bb1030f120a3a6
|
data/README.md
CHANGED
@@ -1,31 +1,57 @@
|
|
1
|
+
<img width="250" src="./logo.svg" alt="Solidus logo">
|
1
2
|
|
2
|
-
|
3
|
+
# Solidus
|
4
|
+
|
5
|
+
[![Circle CI](https://circleci.com/gh/solidusio/solidus/tree/master.svg?style=shield)](https://circleci.com/gh/solidusio/solidus/tree/master)
|
6
|
+
[![Gem](https://img.shields.io/gem/v/solidus.svg)](https://rubygems.org/gems/solidus)
|
7
|
+
[![License](http://img.shields.io/badge/license-BSD-yellowgreen.svg)](LICENSE.md)
|
8
|
+
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
|
9
|
+
|
10
|
+
[![Supporters on Open Collective](https://opencollective.com/solidus/tiers/supporter/badge.svg?label=Supporters&color=brightgree)](https://opencollective.com/solidus)
|
11
|
+
[![Bronze Partners on Open Collective](https://opencollective.com/solidus/tiers/bronze/badge.svg?label=Bronze Partners&color=brightgree)](https://opencollective.com/solidus)
|
12
|
+
[![Silver Partners on Open Collective](https://opencollective.com/solidus/tiers/silver/badge.svg?label=Silver Partners&color=brightgree)](https://opencollective.com/solidus)
|
13
|
+
[![Gold Partners on Open Collective](https://opencollective.com/solidus/tiers/gold/badge.svg?label=Gold Partners&color=brightgree)](https://opencollective.com/solidus)
|
14
|
+
[![Open Source Helpers](https://www.codetriage.com/solidusio/solidus/badges/users.svg)](https://www.codetriage.com/solidusio/solidus)
|
15
|
+
[![Slack](http://slack.solidus.io/badge.svg)](http://slack.solidus.io)
|
16
|
+
|
17
|
+
**A free, open-source ecommerce platform that gives you complete control over your store.**
|
18
|
+
|
19
|
+
- **Visit our website**: [https://solidus.io/](https://solidus.io/)
|
20
|
+
- **Read our Community Guidelines**: [https://solidus.io/community-guidelines/](https://solidus.io/community-guidelines/)
|
21
|
+
- **Read our guides**: [https://guides.solidus.io/developers/](https://guides.solidus.io/developers/)
|
22
|
+
- **Join our Slack**: [http://slack.solidus.io/](http://slack.solidus.io/)
|
23
|
+
- **Solidus Security**: [mailing list](https://groups.google.com/forum/#!forum/solidus-security)
|
3
24
|
|
4
|
-
- [solidus.io](http://solidus.io/)
|
5
|
-
- [Documentation](https://guides.solidus.io)
|
6
|
-
- [Join our Slack](http://slack.solidus.io/) ([solidusio.slack.com](http://solidusio.slack.com))
|
7
|
-
- [solidus-security](https://groups.google.com/forum/#!forum/solidus-security) mailing list
|
8
25
|
|
9
26
|
## Table of Contents
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
27
|
+
- [Supporting Solidus](#supporting-solidus)
|
28
|
+
- [Summary](#summary)
|
29
|
+
- [Demo](#demo)
|
30
|
+
- [Getting Started](#getting-started)
|
31
|
+
- [Installation Options](#installation-options)
|
32
|
+
- [Performance](#performance)
|
33
|
+
- [Developing Solidus](#developing-solidus)
|
34
|
+
- [Contributing](#contributing)
|
35
|
+
|
36
|
+
## Supporting Solidus
|
37
|
+
As a community-driven project, Solidus relies on funds and time donated by developers and stakeholders who use Solidus for their businesses. If you'd like to help Solidus keep growing, please consider:
|
18
38
|
|
19
|
-
|
39
|
+
- [Become a backer or sponsor on Open Collective](https://opencollective.com/solidus).
|
40
|
+
- [Contribute to the project](https://github.com/solidusio/solidus/blob/master/CONTRIBUTING.md).
|
20
41
|
|
21
|
-
|
42
|
+
### Main Contributor & Director
|
43
|
+
At present, Nebulab is the main code contributor and director of Solidus, providing technical guidance and coordinating community efforts and activities.
|
22
44
|
|
23
|
-
|
45
|
+
[![Nebulab](https://nebulab.it/assets/images/public/logo.svg)](https://nebulab.it/)
|
24
46
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
47
|
+
### Ambassadors
|
48
|
+
Support this project by becoming a Solidus Ambassador. Your logo will show up here with a link to your website. [Become an Ambassador](https://opencollective.com/solidus).
|
49
|
+
|
50
|
+
[![Super Good Software](https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F3bbb1440-727f-11e9-a366-37673cc38cee.png&height=100)](https://supergood.software/)
|
51
|
+
[![Karma Creative](https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2Fab94d2a0-7253-11e9-a366-37673cc38cee.png&height=100)](https://karmacreative.io/)
|
52
|
+
[![ModdedEuros](https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fimages.opencollective.com%2Fmodded-euros%2Ff1a80ae%2Flogo.png&height=100)](https://www.moddedeuros.com)
|
53
|
+
|
54
|
+
---
|
29
55
|
|
30
56
|
## Summary
|
31
57
|
|
@@ -50,18 +76,6 @@ ecommerce platform. However, you may only want to use the
|
|
50
76
|
[`solidus_core`](https://github.com/solidusio/solidus/tree/master/core) gem
|
51
77
|
combine it with your own custom frontend, admin interface, and API.
|
52
78
|
|
53
|
-
[![Circle CI](https://circleci.com/gh/solidusio/solidus/tree/master.svg?style=shield)](https://circleci.com/gh/solidusio/solidus/tree/master)
|
54
|
-
[![Gem](https://img.shields.io/gem/v/solidus.svg)](https://rubygems.org/gems/solidus)
|
55
|
-
[![License](http://img.shields.io/badge/license-BSD-yellowgreen.svg)](LICENSE.md)
|
56
|
-
[![Slack](http://slack.solidus.io/badge.svg)](http://slack.solidus.io)
|
57
|
-
[![Backers on Open Collective](https://opencollective.com/solidus/backers/badge.svg)](https://opencollective.com/solidus)
|
58
|
-
[![Sponsors on Open Collective](https://opencollective.com/solidus/sponsors/badge.svg)](https://opencollective.com/solidus)
|
59
|
-
[![Open Source Helpers](https://www.codetriage.com/solidusio/solidus/badges/users.svg)](https://www.codetriage.com/solidusio/solidus)
|
60
|
-
|
61
|
-
### Supported by
|
62
|
-
|
63
|
-
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
|
64
|
-
|
65
79
|
## Demo
|
66
80
|
|
67
81
|
Try out Solidus with one-click on Heroku:
|
@@ -87,47 +101,71 @@ Begin by making sure you have
|
|
87
101
|
required for Paperclip. (You can install it using [Homebrew](https://brew.sh) if
|
88
102
|
you're on a Mac.)
|
89
103
|
|
90
|
-
To add solidus, begin with a Rails 5 application and a database configured and
|
91
|
-
created.
|
104
|
+
To add solidus, begin with a Rails 5/6 application and a database configured and
|
105
|
+
created.
|
92
106
|
|
93
|
-
|
94
|
-
gem 'solidus'
|
95
|
-
gem 'solidus_auth_devise'
|
96
|
-
```
|
107
|
+
### Installing Solidus
|
97
108
|
|
98
|
-
|
109
|
+
<details>
|
110
|
+
<summary>For Solidus v2.10 and below</summary>
|
99
111
|
|
100
|
-
|
101
|
-
|
112
|
+
Add the following to your Gemfile. Skip the `solidus_auth_devise` part
|
113
|
+
if you want to use a custom authentication system.
|
102
114
|
|
103
|
-
```
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
```
|
115
|
+
```ruby
|
116
|
+
gem 'solidus'
|
117
|
+
gem 'solidus_auth_devise'
|
118
|
+
```
|
108
119
|
|
109
|
-
Run
|
120
|
+
Run the `bundle` command to install.
|
110
121
|
|
111
|
-
|
112
|
-
|
113
|
-
|
122
|
+
After installing gems, you'll have to run the generator to create necessary
|
123
|
+
configuration files and migrations.
|
124
|
+
|
125
|
+
```bash
|
126
|
+
bin/rails g spree:install
|
127
|
+
```
|
128
|
+
</details>
|
129
|
+
|
130
|
+
<details>
|
131
|
+
<summary>For Solidus v2.11 (still unreleased) and above</summary>
|
132
|
+
|
133
|
+
Add the following to your Gemfile.
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
gem 'solidus'
|
137
|
+
```
|
138
|
+
|
139
|
+
Run the `bundle` command to install.
|
140
|
+
|
141
|
+
After installing gems, you'll have to run the generator to create necessary
|
142
|
+
configuration files and migrations.
|
143
|
+
|
144
|
+
```bash
|
145
|
+
bin/rails g solidus:install
|
146
|
+
```
|
147
|
+
</details>
|
148
|
+
|
149
|
+
### Accessing Solidus Store
|
114
150
|
|
115
|
-
|
151
|
+
Start the Rails server with the command:
|
116
152
|
|
117
153
|
```bash
|
118
|
-
|
154
|
+
bin/rails s
|
119
155
|
```
|
120
156
|
|
121
157
|
The [`solidus_frontend`](https://github.com/solidusio/solidus/tree/master/frontend) storefront will be accessible at [http://localhost:3000/](http://localhost:3000/)
|
122
158
|
and the admin can be found at [http://localhost:3000/admin/](http://localhost:3000/admin/).
|
123
159
|
|
160
|
+
For information on how to customize your store, check out the [customization guides](https://guides.solidus.io/developers/customizations/overview.html).
|
161
|
+
|
124
162
|
### Default Username/Password
|
125
163
|
|
126
164
|
As part of running the above installation steps, you will be asked to set an admin email/password combination. The default values are `admin@example.com` and `test123`, respectively.
|
127
165
|
|
128
166
|
### Questions?
|
129
167
|
|
130
|
-
The best way to ask questions is
|
168
|
+
The best way to ask questions is to [join the Solidus Slack](http://slack.solidus.io/) and join the [#support channel](https://solidusio.slack.com/messages/support/details/).
|
131
169
|
|
132
170
|
## Installation options
|
133
171
|
|
@@ -141,20 +179,20 @@ gem 'solidus', github: 'solidusio/solidus'
|
|
141
179
|
**Note: The master branch is not guaranteed to ever be in a fully functioning
|
142
180
|
state. It is too risky to use this branch in production.**
|
143
181
|
|
144
|
-
By default, the installation generator (`
|
182
|
+
By default, the installation generator (`solidus:install`) will run
|
145
183
|
migrations as well as adding seed and sample data. This can be disabled using
|
146
184
|
|
147
185
|
```bash
|
148
|
-
rails g
|
186
|
+
bin/rails g solidus:install --migrate=false --sample=false --seed=false
|
149
187
|
```
|
150
188
|
|
151
189
|
You can always perform any of these steps later by using these commands.
|
152
190
|
|
153
191
|
```bash
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
192
|
+
bin/rails railties:install:migrations
|
193
|
+
bin/rails db:migrate
|
194
|
+
bin/rails db:seed
|
195
|
+
bin/rails spree_sample:load
|
158
196
|
```
|
159
197
|
|
160
198
|
There are also options and rake tasks provided by
|
@@ -175,15 +213,19 @@ config.assets.debug = false
|
|
175
213
|
|
176
214
|
To gain some extra speed you may enable Turbolinks inside of Solidus admin.
|
177
215
|
|
178
|
-
Add `gem 'turbolinks', '~> 5.0.0'` into your `Gemfile` (if not already present)
|
216
|
+
Add `gem 'turbolinks', '~> 5.0.0'` into your `Gemfile` (if not already present)
|
217
|
+
and change `vendor/assets/javascripts/spree/backend/all.js` as follows:
|
179
218
|
|
180
219
|
```js
|
181
220
|
//= require turbolinks
|
182
|
-
|
221
|
+
//
|
222
|
+
// ... current file content
|
223
|
+
//
|
224
|
+
//= require spree/backend/turbolinks-integration.js
|
183
225
|
```
|
184
226
|
|
185
|
-
**CAUTION** Please be aware that Turbolinks can break extensions
|
186
|
-
Use at own risk.
|
227
|
+
**CAUTION** Please be aware that Turbolinks can break extensions
|
228
|
+
and/or customizations to the Solidus admin. Use at your own risk.
|
187
229
|
|
188
230
|
## Developing Solidus
|
189
231
|
|
@@ -197,7 +239,19 @@ Use at own risk.
|
|
197
239
|
* Install the gem dependencies
|
198
240
|
|
199
241
|
```bash
|
200
|
-
|
242
|
+
bin/setup
|
243
|
+
```
|
244
|
+
|
245
|
+
_Note_: If you're using PostgreSQL or MySQL, you'll need to install those gems through the DB environment variable.
|
246
|
+
|
247
|
+
```bash
|
248
|
+
# PostgreSQL
|
249
|
+
export DB=postgresql
|
250
|
+
bin/setup
|
251
|
+
|
252
|
+
# MySQL
|
253
|
+
export DB=mysql
|
254
|
+
bin/setup
|
201
255
|
```
|
202
256
|
|
203
257
|
### Sandbox
|
@@ -212,20 +266,35 @@ data already loaded.
|
|
212
266
|
* Create the sandbox application
|
213
267
|
|
214
268
|
```bash
|
215
|
-
|
269
|
+
bin/sandbox
|
216
270
|
```
|
217
271
|
|
218
272
|
You can create a sandbox with PostgreSQL or MySQL by setting the DB environment variable.
|
219
273
|
|
220
274
|
```bash
|
221
|
-
|
275
|
+
# PostgreSQL
|
276
|
+
export DB=postgresql
|
277
|
+
bin/sandbox
|
278
|
+
|
279
|
+
# MySQL
|
280
|
+
export DB=mysql
|
281
|
+
bin/sandbox
|
282
|
+
```
|
283
|
+
|
284
|
+
If you need to create a Rails 5.2 application for your sandbox, for example
|
285
|
+
if you are still using Ruby 2.4 which is not supported by Rails 6, you can
|
286
|
+
use the `RAILS_VERSION` environment variable.
|
287
|
+
|
288
|
+
```bash
|
289
|
+
export RAILS_VERSION='~> 5.2.0'
|
290
|
+
bin/setup
|
291
|
+
bin/sandbox
|
222
292
|
```
|
223
293
|
|
224
|
-
* Start the server
|
294
|
+
* Start the server (`bin/rails` will forward any argument to the sandbox)
|
225
295
|
|
226
296
|
```bash
|
227
|
-
|
228
|
-
rails server
|
297
|
+
bin/rails server
|
229
298
|
```
|
230
299
|
|
231
300
|
### Tests
|
@@ -300,7 +369,7 @@ project.
|
|
300
369
|
A list can be found at [extensions.solidus.io](http://extensions.solidus.io/).
|
301
370
|
|
302
371
|
If you want to write an extension for Solidus, you can use the
|
303
|
-
[
|
372
|
+
[solidus_dev_support](https://github.com/solidusio/solidus_dev_support.git) gem.
|
304
373
|
|
305
374
|
## Contributing
|
306
375
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_backend
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: solidus_core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.11.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.11.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: solidus_frontend
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.11.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.11.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: solidus_sample
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
75
|
+
version: 2.11.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.11.0
|
83
83
|
description: Solidus is an open source e-commerce framework for Ruby on Rails.
|
84
84
|
email: contact@solidus.io
|
85
85
|
executables: []
|
@@ -90,14 +90,13 @@ files:
|
|
90
90
|
- lib/demo/Dockerfile
|
91
91
|
- lib/demo/README.md
|
92
92
|
- lib/demo/docker-entrypoint.sh
|
93
|
-
- lib/sandbox.sh
|
94
93
|
- lib/solidus.rb
|
95
94
|
- lib/spree.rb
|
96
95
|
homepage: http://solidus.io
|
97
96
|
licenses:
|
98
97
|
- BSD-3-Clause
|
99
98
|
metadata: {}
|
100
|
-
post_install_message:
|
99
|
+
post_install_message:
|
101
100
|
rdoc_options: []
|
102
101
|
require_paths:
|
103
102
|
- lib
|
@@ -105,16 +104,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
104
|
requirements:
|
106
105
|
- - ">="
|
107
106
|
- !ruby/object:Gem::Version
|
108
|
-
version: 2.
|
107
|
+
version: 2.5.0
|
109
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
109
|
requirements:
|
111
110
|
- - ">="
|
112
111
|
- !ruby/object:Gem::Version
|
113
112
|
version: 1.8.23
|
114
|
-
requirements:
|
115
|
-
- none
|
113
|
+
requirements: []
|
116
114
|
rubygems_version: 3.0.3
|
117
|
-
signing_key:
|
115
|
+
signing_key:
|
118
116
|
specification_version: 4
|
119
117
|
summary: Full-stack e-commerce framework for Ruby on Rails.
|
120
118
|
test_files: []
|
data/lib/sandbox.sh
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# Used in the sandbox rake task in Rakefile
|
3
|
-
|
4
|
-
set -e
|
5
|
-
|
6
|
-
case "$DB" in
|
7
|
-
postgres|postgresql)
|
8
|
-
RAILSDB="postgresql"
|
9
|
-
;;
|
10
|
-
mysql)
|
11
|
-
RAILSDB="mysql"
|
12
|
-
;;
|
13
|
-
sqlite|'')
|
14
|
-
RAILSDB="sqlite3"
|
15
|
-
;;
|
16
|
-
*)
|
17
|
-
echo "Invalid DB specified: $DB"
|
18
|
-
exit 1
|
19
|
-
;;
|
20
|
-
esac
|
21
|
-
|
22
|
-
rm -rf ./sandbox
|
23
|
-
bundle exec rails new sandbox --database="$RAILSDB" \
|
24
|
-
--skip-bundle \
|
25
|
-
--skip-git \
|
26
|
-
--skip-keeps \
|
27
|
-
--skip-rc \
|
28
|
-
--skip-spring \
|
29
|
-
--skip-test \
|
30
|
-
--skip-yarn
|
31
|
-
|
32
|
-
if [ ! -d "sandbox" ]; then
|
33
|
-
echo 'sandbox rails application failed'
|
34
|
-
exit 1
|
35
|
-
fi
|
36
|
-
|
37
|
-
cd ./sandbox
|
38
|
-
cat <<RUBY >> Gemfile
|
39
|
-
|
40
|
-
gem 'solidus', path: '..'
|
41
|
-
gem 'solidus_auth_devise', '>= 2.1.0'
|
42
|
-
gem 'rails-i18n'
|
43
|
-
gem 'solidus_i18n'
|
44
|
-
|
45
|
-
group :test, :development do
|
46
|
-
platforms :mri do
|
47
|
-
gem 'pry-byebug'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
RUBY
|
51
|
-
|
52
|
-
# Ensure sqlite3 version to match ActiveRecord SQLite adapter requirement
|
53
|
-
# (see https://github.com/solidusio/solidus/issues/3087 for details)
|
54
|
-
sed -i -e "s/gem 'sqlite3'/gem 'sqlite3', '~> 1.3.6'/g" Gemfile
|
55
|
-
|
56
|
-
bundle install --gemfile Gemfile
|
57
|
-
bundle exec rake db:drop db:create
|
58
|
-
bundle exec rails g spree:install --auto-accept --user_class=Spree::User --enforce_available_locales=true
|
59
|
-
bundle exec rails g solidus:auth:install
|