Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

heliom/kckstrt-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloWorld — An app generated with Kckstrt

Setup

Run script/setup for a one-step complete installation.

Asset Helpers

asset_path

<img src="<%= asset_path 'kckstrt.png' %>" alt="Kckstrt">

asset_path uses Sprockets’ digest_path to find the asset within app/assets/(images|javascripts|stylesheets).

--

javascript_include_tag & stylesheet_link_tag

<head>
  <title>Kckstrt</title>
  <%= stylesheet_link_tag :styles %>
  <%# => <link rel="stylesheet" href="/assets/styles.css"> %>
</head>
<body>
  <%= javascript_link_tag :scripts %>
  <%# => <script src="/assets/scripts.js"></script> %>
</body>

--

inline_script_tag

<%= inline_script_tag :scripts %>
<%# => <script>console.log('content of scripts.js')</script> %>

Deployment

This app is Heroku-ready.
Don’t forget to set the ENV['ASSET_HOST'] environment variable. We strongly suggest using Amazon CloudFront for a plug and play CDN host. Otherwise you’ll have to pre-compile your assets. Such script isn’t included.

Staging

rake deploy:staging

Push dev to origin/dev & staging/master

Production

rake deploy:production

Push master to origin/master & production/master

Credits

Rafael & Etienne

About

A Sinatra app freshly generated by Kckstrt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published