- Install Ruby version 3.1.2.
- Windows - Use RubyInstaller2, here
- Install Rails:
gem install rails
- Clone this repository and run
bundle install
in the root. - Install PostgreSQL.
- In pg_hba.conf (On Windows 10, at
C:\Program Files\PostgreSQL\XXX\data\pg_hba.conf
), change authentication method to "trust" for local connections (Password not required). - Windows - add to path (e.g. "C:\Program Files\PostgreSQL\9.6\bin")
- Add a role for your user name:
createuser -U postgres <USERNAME>
ALTER USER <USERNAME> WITH SUPERUSER
- Add a database for the app:
createdb imagewall_development -U <USERNAME>
- Bring the database up to date:
rails db:migrate
- In pg_hba.conf (On Windows 10, at
- Get the file
config/application.yml
from IT and add it. (The file holds access keys and passwords - too sensitive for bitbucket!) - Run the app:
rails s
in the app root.
- Create a user in the app.
- Run
UPDATE users SET is_sales_admin = 't', is_marketing_admin = 't', is_super_admin = 't' WHERE email = '<EMAIL>';
in psql (psql imagewall_development
). - Create the default material in the app. Currently this is Solanum (Excel id: solanumSteel).
We use Heroku to host the website. There is a bitbucket pipeline set up which syncs the master branch of the repository with Heroku. So, if you push to master and have access to Heroku, it should build and publish automatically. You can also push to Heroku manually:
- Install Heroku CLI
heroku login
heroku git:remote -a zahnerimagewall
git push heroku master
- 2018-09-24 Removed the ability to buy a design directly from the website. Hadn't been used, and will allow us to discontinue our TaxJar subscription. Key functions were left in place in anticipation of turning this back on at some point in the future. If it becomes clear that won't happen, all references to purchasing, taxes, and Stripe can be removed.