Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instaling in non-ruby server #20

Open
dientuki opened this issue Apr 8, 2015 · 8 comments
Open

Instaling in non-ruby server #20

dientuki opened this issue Apr 8, 2015 · 8 comments

Comments

@dientuki
Copy link

dientuki commented Apr 8, 2015

There is a way to export the proyect to put it in an Apache web server?

@davidcansler
Copy link

I would also love to get this project on an Apache web server. I've spent a few hours trying to no avail. Any help would be much appreciated!

@dientuki
Copy link
Author

dientuki commented Apr 9, 2015

I just founded, it's uses middleman to run, and middleman have a command to build.

Take a look to https://middlemanapp.com/basics/build_and_deploy/ maybe you have to configure some things, but it's work fine.

@davidcansler
Copy link

I did see that, but my build didn't work. Were you able to successfully deploy?

@dientuki
Copy link
Author

Put your log, or describe your problem.

@davidcansler
Copy link

Got it figured out. I only needed to fix paths...

@dientuki
Copy link
Author

Open config.rb and add this line

activate :relative_assets

inside this block

configure :build do

end

Another fix is the path in source/javascripts/settings.js.erb, add this code

.gsub("../", "")

to each image_path() you can found.

@dientuki
Copy link
Author

I forget something, in your css/html you must use some functions, take a look to "Helpers" in

https://middlemanapp.com/advanced/asset_pipeline/

@jheasly
Copy link

jheasly commented Jun 27, 2015

@dientuki Many, many thanks for the

activate :relative_assets

in config.rb tip! I was getting absolute paths in my bundle exec middleman build static site index.html and this was breaking the .js and .css when served from an S3 bucket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants