Skip to content

Commit a387a41

Browse files
committed
Remove old production installation instructions
1 parent dcb2c47 commit a387a41

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

docs/install.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -226,43 +226,3 @@ Then go to the applications Rails console:
226226
Find the user and assign them the administrative role. This can be completed by running this (where myemail@domain.co is the email address you used to register with):
227227

228228
2.2.6 :001 > User.find_by_email('myemail@domain.co').update(role: Role.find_by_name('admin'))
229-
230-
## Production
231-
232-
Although designed for CentOS, this document can be followed quite closely to set up a Rails app to work with Apache and Passenger:
233-
234-
https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6
235-
236-
To set up TeSS in production, do:
237-
238-
bundle exec rake db:setup RAILS_ENV=production
239-
240-
which will do db:create, db:schema:load, db:seed. If you want the DB dropped as well:
241-
242-
bundle exec rake db:reset RAILS_ENV=production
243-
244-
...which will do db:drop, db:setup
245-
246-
unset XDG_RUNTIME_DIR
247-
248-
(may need setting in ~/.profile or similar if rails console moans about permissions.)
249-
250-
Delete all from Solr if need be and reindex it:
251-
252-
curl http://localhost:8983/solr/update?commit=true -d '<delete><query>*:*</query></delete>'
253-
254-
bundle exec rake sunspot:solr:reindex RAILS_ENV=production
255-
256-
Create an admin user and assign it appropriate 'admin' role bu looking up that role in console in model Role (default roles should be created automatically).
257-
258-
The first time and each time a css or js file is updated:
259-
260-
bundle exec rake assets:clean RAILS_ENV=production
261-
262-
bundle exec rake assets:precompile RAILS_ENV=production
263-
264-
Restart your Web server.
265-
266-
---
267-
268-
****

0 commit comments

Comments
 (0)