{"id":23491655,"url":"https://github.com/halfbyte/spg2","last_synced_at":"2026-01-23T12:54:18.014Z","repository":{"id":464475,"uuid":"89049","full_name":"halfbyte/spg2","owner":"halfbyte","description":"Static Page Generator - Poor mans CMS.","archived":false,"fork":false,"pushed_at":"2008-12-11T20:18:10.000Z","size":144,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:46:24.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halfbyte.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-12-11T20:17:46.000Z","updated_at":"2019-08-13T13:47:03.000Z","dependencies_parsed_at":"2022-07-08T02:16:17.948Z","dependency_job_id":null,"html_url":"https://github.com/halfbyte/spg2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halfbyte/spg2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fspg2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fspg2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fspg2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fspg2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halfbyte","download_url":"https://codeload.github.com/halfbyte/spg2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fspg2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28692294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-25T01:28:57.134Z","updated_at":"2026-01-23T12:54:17.986Z","avatar_url":"https://github.com/halfbyte.png","language":null,"readme":"== Welcome to Rails\n\nRails is a web-application and persistence framework that includes everything\nneeded to create database-backed web-applications according to the\nModel-View-Control pattern of separation. This pattern splits the view (also\ncalled the presentation) into \"dumb\" templates that are primarily responsible\nfor inserting pre-built data in between HTML tags. The model contains the\n\"smart\" domain objects (such as Account, Product, Person, Post) that holds all\nthe business logic and knows how to persist themselves to a database. The\ncontroller handles the incoming requests (such as Save New Account, Update\nProduct, Show Post) by manipulating the model and directing data to the view.\n\nIn Rails, the model is handled by what's called an object-relational mapping\nlayer entitled Active Record. This layer allows you to present the data from\ndatabase rows as objects and embellish these data objects with business logic\nmethods. You can read more about Active Record in \nlink:files/vendor/rails/activerecord/README.html.\n\nThe controller and view are handled by the Action Pack, which handles both\nlayers by its two parts: Action View and Action Controller. These two layers\nare bundled in a single package due to their heavy interdependence. This is\nunlike the relationship between the Active Record and Action Pack that is much\nmore separate. Each of these packages can be used independently outside of\nRails.  You can read more about Action Pack in \nlink:files/vendor/rails/actionpack/README.html.\n\n\n== Getting started\n\n1. Start the web server: \u003ctt\u003eruby script/server\u003c/tt\u003e (run with --help for options)\n2. Go to http://localhost:3000/ and get \"Welcome aboard: You’re riding the Rails!\"\n3. Follow the guidelines to start developing your application\n\n\n== Web servers\n\nRails uses the built-in web server in Ruby called WEBrick by default, so you don't\nhave to install or configure anything to play around. \n\nIf you have lighttpd installed, though, it'll be used instead when running script/server.\nIt's considerably faster than WEBrick and suited for production use, but requires additional\ninstallation and currently only works well on OS X/Unix (Windows users are encouraged\nto start with WEBrick). We recommend version 1.4.11 and higher. You can download it from\nhttp://www.lighttpd.net.\n\nIf you want something that's halfway between WEBrick and lighttpd, we heartily recommend\nMongrel. It's a Ruby-based web server with a C-component (so it requires compilation) that\nalso works very well with Windows. See more at http://mongrel.rubyforge.org/.\n\nBut of course its also possible to run Rails with the premiere open source web server Apache.\nTo get decent performance, though, you'll need to install FastCGI. For Apache 1.3, you want\nto use mod_fastcgi. For Apache 2.0+, you want to use mod_fcgid.\n\nSee http://wiki.rubyonrails.com/rails/pages/FastCGI for more information on FastCGI.\n\n== Example for Apache conf\n\n  \u003cVirtualHost *:80\u003e\n    ServerName rails\n    DocumentRoot /path/application/public/\n    ErrorLog /path/application/log/server.log\n  \n    \u003cDirectory /path/application/public/\u003e\n      Options ExecCGI FollowSymLinks\n      AllowOverride all\n      Allow from all\n      Order allow,deny\n    \u003c/Directory\u003e\n  \u003c/VirtualHost\u003e\n\nNOTE: Be sure that CGIs can be executed in that directory as well. So ExecCGI\nshould be on and \".cgi\" should respond. All requests from 127.0.0.1 go\nthrough CGI, so no Apache restart is necessary for changes. All other requests\ngo through FCGI (or mod_ruby), which requires a restart to show changes.\n\n\n== Debugging Rails\n\nHave \"tail -f\" commands running on both the server.log, production.log, and\ntest.log files. Rails will automatically display debugging and runtime\ninformation to these files. Debugging info will also be shown in the browser\non requests from 127.0.0.1.\n\n\n== Breakpoints\n\nBreakpoint support is available through the script/breakpointer client. This\nmeans that you can break out of execution at any point in the code, investigate\nand change the model, AND then resume execution! Example:\n\n  class WeblogController \u003c ActionController::Base\n    def index\n      @posts = Post.find_all\n      breakpoint \"Breaking out from the list\"\n    end\n  end\n  \nSo the controller will accept the action, run the first line, then present you\nwith a IRB prompt in the breakpointer window. Here you can do things like:\n\nExecuting breakpoint \"Breaking out from the list\" at .../webrick_server.rb:16 in 'breakpoint'\n\n  \u003e\u003e @posts.inspect\n  =\u003e \"[#\u003cPost:0x14a6be8 @attributes={\\\"title\\\"=\u003enil, \\\"body\\\"=\u003enil, \\\"id\\\"=\u003e\\\"1\\\"}\u003e, \n       #\u003cPost:0x14a6620 @attributes={\\\"title\\\"=\u003e\\\"Rails you know!\\\", \\\"body\\\"=\u003e\\\"Only ten..\\\", \\\"id\\\"=\u003e\\\"2\\\"}\u003e]\"\n  \u003e\u003e @posts.first.title = \"hello from a breakpoint\"\n  =\u003e \"hello from a breakpoint\"\n\n...and even better is that you can examine how your runtime objects actually work:\n\n  \u003e\u003e f = @posts.first \n  =\u003e #\u003cPost:0x13630c4 @attributes={\"title\"=\u003enil, \"body\"=\u003enil, \"id\"=\u003e\"1\"}\u003e\n  \u003e\u003e f.\n  Display all 152 possibilities? (y or n)\n\nFinally, when you're ready to resume execution, you press CTRL-D\n\n\n== Console\n\nYou can interact with the domain model by starting the console through script/console. \nHere you'll have all parts of the application configured, just like it is when the\napplication is running. You can inspect domain models, change values, and save to the\ndatabase. Starting the script without arguments will launch it in the development environment.\nPassing an argument will specify a different environment, like \u003ctt\u003escript/console production\u003c/tt\u003e.\n\n\n== Description of contents\n\napp\n  Holds all the code that's specific to this particular application.\n\napp/controllers\n  Holds controllers that should be named like weblog_controller.rb for\n  automated URL mapping. All controllers should descend from\n  ActionController::Base.\n\napp/models\n  Holds models that should be named like post.rb.\n  Most models will descend from ActiveRecord::Base.\n  \napp/views\n  Holds the template files for the view that should be named like\n  weblog/index.rhtml for the WeblogController#index action. All views use eRuby\n  syntax. This directory can also be used to keep stylesheets, images, and so on\n  that can be symlinked to public.\n  \napp/helpers\n  Holds view helpers that should be named like weblog_helper.rb.\n\napp/apis\n  Holds API classes for web services.\n\nconfig\n  Configuration files for the Rails environment, the routing map, the database, and other dependencies.\n\ncomponents\n  Self-contained mini-applications that can bundle together controllers, models, and views.\n\ndb\n  Contains the database schema in schema.rb.  db/migrate contains all\n  the sequence of Migrations for your schema.\n\nlib\n  Application specific libraries. Basically, any kind of custom code that doesn't\n  belong under controllers, models, or helpers. This directory is in the load path.\n    \npublic\n  The directory available for the web server. Contains subdirectories for images, stylesheets,\n  and javascripts. Also contains the dispatchers and the default HTML files.\n\nscript\n  Helper scripts for automation and generation.\n\ntest\n  Unit and functional tests along with fixtures.\n\nvendor\n  External libraries that the application depends on. Also includes the plugins subdirectory.\n  This directory is in the load path.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfbyte%2Fspg2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalfbyte%2Fspg2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfbyte%2Fspg2/lists"}