[Archivesspace_Users_Group] Working with Ruby
james at hudmol.com
Wed Dec 18 15:25:11 EST 2019
If you run in development mode you don’t need to restart for most changes - they will hot reload.
To do this, download the source and then from the archivesspace directory run the components separately like this:
You’ll need to put your config.rb in common/config/, and the mysql connector in common/lib/, and your plugins in plugins/.
Hope that helps.
> On Dec 17, 2019, at 4:53 PM, Alan Manifold <amanifold at slv.vic.gov.au> wrote:
> Hi all,
> I am new to Ruby, and have been adding some functionality to our PUI through a local plugin. I’m finding the testing a bit slow.
> Whenever I make a change to the code or configuration files, I have to restart the application before I see them in effect. This generally takes 4-5 minutes on our server. That’s not terrible, but I wondered if there’s a way to speed up the process. Is there any way to avoid restarting the application each time I make a change, such as just recompiling a single file or something like that? It would save me a lot of time in my testing.
> Thanks for any tips you can share.
> Alan Manifold | Library Systems & Digital Preservation Manager | Collection Development & Description
> State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
> T +61 3 8664 7122 | amanifold at slv.vic.gov.au <mailto:amanifold at slv.vic.gov.au>
> slv.vic.gov.au <http://slv.vic.gov.au/>
> <http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331> <http://twitter.com/Library_Vic> <http://www.youtube.com/user/statelibraryvictoria> <http://instagram.com/library_vic>
> This message and any attachment is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. Thank you. !DSPAM:5df95437243835172830492! _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Archivesspace_Users_Group