Jets Upload Tutorial with Carrierwave Example
Clone or download
Latest commit 5a8d2b3 Jan 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app fix link Jan 4, 2019
bin upgrade jets Jan 4, 2019
config use actual carrierwave gem Jan 4, 2019
db add cleaner job, update index to link to blog Dec 14, 2018
public add links Jan 4, 2019
spec first commit Dec 13, 2018
.babelrc first commit Dec 13, 2018
.env first commit Dec 13, 2018
.gitignore update gitignore Jan 4, 2019
.jetskeep first commit Dec 13, 2018
.postcssrc.yml first commit Dec 13, 2018
.rspec first commit Dec 13, 2018
Gemfile use actual carrierwave gem Jan 4, 2019
Gemfile.lock update Gemfile.lock Jan 9, 2019
Procfile first commit Dec 13, 2018
README.md add links Jan 4, 2019
Rakefile first commit Dec 13, 2018
config.ru first commit Dec 13, 2018
package.json first commit Dec 13, 2018
yarn.lock first commit Dec 13, 2018

README.md

Jets Upload Tutorial with Carrierwave Example

This project demonstrates how to upload images or any binary file with Jets and Carrierwave.

Getting Started

git clone https://github.com/tongueroo/jets-example-upload upload
cd upload
vim .env.development # add CARRIERWAVE_* variables per tutorial guide
jets deploy

Important

Remember to update your .env files with the CARRIERWAVE_* variables. Example:

.env.development:

CARRIERWAVE_AWS_ACCESS_KEY_ID=AKIAI7KI5LIEXAMPLE
CARRIERWAVE_AWS_SECRET_ACCESS_KEY=XOGuscz2lNyGFo1ChFntigzBp3IMMGdEXAMPLE
CARRIERWAVE_AWS_REGION=us-west-2
CARRIERWAVE_S3_BUCKET=demo-uploads-EXAMPLE

You'll need to update .env.development.remote before deploying also.

.env.development.remote:

DATABASE_URL=mysql2://user:pass@host.us-west-2.rds.amazonaws.com/upload?pool=5

Resources

If you find Jets interesting, please it a GitHub star tongueroo/jets. It helps others find out about the project. I'd appreciate it!