Instead of using rails at all to post. I simply generate a SQL script that I run as follows, while being in my source root linked to my heroku app:
cat src/main/resources/db/dev/migration/V2__Test_Data.sql | heroku pg:psql
With the file looking something like the following:
INSERT INTO posts ( title, body, rendered_body, created_at, updated_at, abstract, rendered_abstract) VALUES ( 'TITLE', 'BODY', 'RENDERED', '2000-01-01 00:00:00.0000', '2000-01-01 00:00:00.0000', 'ABSTRACT', 'RENDERED');
With the site not dependent on a security key, we can go ahead and open source it. I’m working on a drop in replacement, written in Kotlin, Spring Boot and Ember, so I suspect this will be the last time that I make any significant update to the
prod branch. You can check that out on the master branch.
While I realise that I can probably achieve what I want using something like
Jekyll, I’m using this as my practice area for front-end development. I also have full control over what I can put in here for when I want to get fancy.
Additionally, my work life has not really given me the opportunity to do a lot of front end stuff, and I’d still like to keep my hand in it. Not that I’m complaining, though.
Let me know what you think (in the non-existent comments section).