How to create a site without using Shopify store in a brand new POWR account
First you will need to create a new POWR account and then, you will need to run your rails console. Before running any of those commands, make sure you are in the right environment.
Notes: for alpha/staging, change it accordly
heroku run rails c -a powr-alpha
Search for user that you’ve just created:
user = User.where(email: "[email protected]").take
Create a new site:
Site.create(site_name: "my-site-fake", url: "my-site-fake.com", platform: "jimdo")
Create a new SiteAccess with user_id and site_id that you’ve just created:
site = Site.last
SiteAccess.create(site_id: site.id, user_id: user.id, role_id: 1)
Logout and login. Now you have a new site and no need to use Shopify/Bigcommerce for it :D